...
|
...
|
@@ -47,13 +47,14 @@ class RegisterController extends WeChatBaseController |
|
|
//ajax获取验证码
|
|
|
public function getCode()
|
|
|
{
|
|
|
$param=$this->request->param();
|
|
|
$clnt = YunpianClient::create('ae02d6c1c41748b663c3f31ba5a03da8');
|
|
|
$code = cmf_get_verification_code('17694933850', 4);
|
|
|
$code = cmf_get_verification_code($param['mobile'], 4);
|
|
|
|
|
|
if ($code != false) {
|
|
|
$param = [YunpianClient::MOBILE => '17694933850', YunpianClient::TEXT => '【十方台】您的验证码是' . $code.'如非本人操作,请忽略本短信',YunpianClient::TPL_ID=>'2601908'];
|
|
|
$param = [YunpianClient::MOBILE => $param['mobile'], YunpianClient::TEXT => '【十方台】您的验证码是' . $code.'如非本人操作,请忽略本短信',YunpianClient::TPL_ID=>'2601908'];
|
|
|
$r = $clnt->sms()->single_send($param);
|
|
|
cmf_verification_code_log('17694933850', $code, 120);
|
|
|
cmf_verification_code_log($param['mobile'], $code, 120);
|
|
|
// if($r->isSucc()){
|
|
|
// $r->data();
|
|
|
// }
|
...
|
...
|
|