...
|
...
|
@@ -54,15 +54,16 @@ class Sms |
|
|
$ip = request()->ip();
|
|
|
$sms = \app\common\model\Sms::create(['event' => $event, 'mobile' => $mobile, 'code' => $code, 'ip' => $ip, 'createtime' => $time]);
|
|
|
$sms_config = config('option.sms');
|
|
|
$signature = '【小区焦点】';
|
|
|
$tKey = time();
|
|
|
$password = md5(md5($sms_config['sms_pwd']) . $tKey);
|
|
|
$date = array(
|
|
|
'username' => $sms_config['sms_user'], //用户名
|
|
|
'password' => $password, //密码
|
|
|
'tKey' => $tKey, //tKey
|
|
|
'signature' => '【小区焦点】',
|
|
|
'signature' => $signature,
|
|
|
'mobile' => $mobile,
|
|
|
'content' => '提醒您,您的验证码是:' .$code.',十分钟之内有效,请勿向他人泄漏您的验证码',
|
|
|
'content' => '提醒您,您的验证码是:' .$code.',十分钟之内有效,请勿向他人泄漏您的验证码。'.$signature,
|
|
|
);
|
|
|
$result = httpPost($sms_config['url'], $date);
|
|
|
// $result = Hook::listen('sms_send', $sms, null, true);
|
...
|
...
|
|