|
|
@ -871,7 +871,7 @@ class ApiController extends \yii\web\Controller |
|
|
|
$ret = MyLib::Post(http_build_query($params), $url); |
|
|
|
$ret = MyLib::Post(http_build_query($params), $url); |
|
|
|
$ret = json_decode($ret, true); |
|
|
|
$ret = json_decode($ret, true); |
|
|
|
if (isset($ret['code']) && $ret['code'] == 200) { |
|
|
|
if (isset($ret['code']) && $ret['code'] == 200) { |
|
|
|
$result['code'] = -1; |
|
|
|
$result['code'] = 0; |
|
|
|
$result['msg'] = '短信发送成功'; |
|
|
|
$result['msg'] = '短信发送成功'; |
|
|
|
$session = Yii::$app->session; |
|
|
|
$session = Yii::$app->session; |
|
|
|
$session->set('hy_vcode_'.$params['mobile'], $code); |
|
|
|
$session->set('hy_vcode_'.$params['mobile'], $code); |
|
|
|