|
|
|
@ -888,7 +888,7 @@ class ApiController extends \yii\web\Controller |
|
|
|
|
$user = UserT::findOne(['name' => $name, 'phone' => $mobile]); |
|
|
|
|
if($name == '' || !preg_match('/^1[345789]\d{9}$/', $mobile)){ |
|
|
|
|
$result['code'] = -1; |
|
|
|
|
$result['msg'] = '参数错误'.'手机'.$mobile.'-'.(!preg_match('/^1[345789]\d{9}$/', $mobile)).'name'.$name.'--'.$name == ''; |
|
|
|
|
$result['msg'] = '参数错误:'.'手机'.$mobile.'-'.(!preg_match('/^1[345789]\d{9}$/', $mobile)).'name'.$name.'--'.($name == ''); |
|
|
|
|
return $result; |
|
|
|
|
} |
|
|
|
|
if($code == '' || Yii::$app->session->get('hy_vcode_'.$mobile) != $code){ |
|
|
|
|