|
|
|
@ -960,7 +960,7 @@ class ApiController extends \yii\web\Controller |
|
|
|
|
} |
|
|
|
|
$user_log_info = new UserLogT(); |
|
|
|
|
$user_log_info->user_id = $user->id; |
|
|
|
|
$user_log_info->content = "游客{$name}(${mobile})注册"; |
|
|
|
|
$user_log_info->content = "游客{$name}({$mobile})注册"; |
|
|
|
|
$user_log_info->ip = MyLib::getIP(); |
|
|
|
|
if(!$user_log_info->save()){ |
|
|
|
|
throw new \Exception(json_encode($user_log_info->getErrors())); |
|
|
|
@ -978,10 +978,12 @@ class ApiController extends \yii\web\Controller |
|
|
|
|
} |
|
|
|
|
// 发送账号密码至短信 |
|
|
|
|
$url = 'http://user.banmacar.com/api/sms/single-send'; |
|
|
|
|
$params['mobile'] = $mobile; |
|
|
|
|
$params['token'] = 'b0909511a91119876a0957ab95fe8c7c'; |
|
|
|
|
$params['content'] = "【汇盈帮手】您好,您在汇盈帮手车险业务系统的体验账号为{$result['data']['username']},初始密码为{$result['data']['password']},系统地址:http://demo.huiybs.cn/"; |
|
|
|
|
$params['content'] = "【汇盈帮手】您好,您的系统体验账号为{$result['data']['username']},初始密码为{$result['data']['password']},网址:http://demo.huiybs.cn/"; |
|
|
|
|
$ret = MyLib::Post(http_build_query($params), $url); |
|
|
|
|
$ret = json_decode($ret, true); |
|
|
|
|
unset($result['data']); |
|
|
|
|
if (isset($ret['code']) && $ret['code'] == 200) { |
|
|
|
|
$result['code'] = 0; |
|
|
|
|
$result['msg'] = '账号密码已通过短信下发至您手机,请注意查收'; |
|
|
|
|