注册接口调试

webUi^2
zhaocheng 5 years ago
parent 8bffdc51b5
commit d5dc26a26e
  1. 2
      frontend/controllers/ApiController.php

@ -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){

Loading…
Cancel
Save