|
@@ -92,13 +92,14 @@ class Sms Extends Model
|
|
|
->options([
|
|
|
'query' => [
|
|
|
'PhoneNumbers' => $mobile,
|
|
|
- 'SignName' => '享购',
|
|
|
+ 'SignName' => '郑欧云商',
|
|
|
'TemplateCode' => $templateCode,
|
|
|
'TemplateParam' => '{"code":' . $num . '}',
|
|
|
],
|
|
|
])
|
|
|
->request();
|
|
|
$info = $result->toArray();
|
|
|
+ print_r($info);die;
|
|
|
if ($info['Code'] == 'OK') {
|
|
|
$ip = request()->ip();
|
|
|
Sms::create(['event' => $event, 'mobile' => $mobile, 'code' => $num, 'ip' => $ip]);
|