|
@@ -40,8 +40,6 @@ class Sms extends Api
|
|
"TemplateParam" => $TemplateParam
|
|
"TemplateParam" => $TemplateParam
|
|
];
|
|
];
|
|
$res = Alisms::sendSmsCode($sendSmsRequest);
|
|
$res = Alisms::sendSmsCode($sendSmsRequest);
|
|
- echo 3;
|
|
|
|
- var_dump($res);die;
|
|
|
|
|
|
|
|
\app\api\model\SmsLog::create([
|
|
\app\api\model\SmsLog::create([
|
|
'params' => json_encode($sendSmsRequest, JSON_UNESCAPED_UNICODE),
|
|
'params' => json_encode($sendSmsRequest, JSON_UNESCAPED_UNICODE),
|
|
@@ -101,7 +99,8 @@ class Sms extends Api
|
|
$event = 'tongzhi';
|
|
$event = 'tongzhi';
|
|
$TemplateCode = "SMS_270945003";
|
|
$TemplateCode = "SMS_270945003";
|
|
$phoneNumber = $value['phone'];
|
|
$phoneNumber = $value['phone'];
|
|
- $code = $this->SmsTemplate($TemplateCode, $phoneNumber, '', $event, 0000);
|
|
|
|
|
|
+ $TemplateParam = $value['number'];
|
|
|
|
+ $code = $this->SmsTemplate($TemplateCode, $phoneNumber, $TemplateParam, $event, 0000);
|
|
if($code){
|
|
if($code){
|
|
$this->add_sms_log($user_id);
|
|
$this->add_sms_log($user_id);
|
|
} else {
|
|
} else {
|