Commit ed5d5e89 authored by 蔡闯's avatar 蔡闯

20201

parent d3fb88ed
...@@ -77,7 +77,7 @@ abstract class BaseController ...@@ -77,7 +77,7 @@ abstract class BaseController
} }
} }
$phone = \think\facade\Request::param('phone'); $phone = \think\facade\Request::param('phone');
if($phone!='' || !isset($phone)) { if($phone) {
if(!isPhoneNo($phone)) { if(!isPhoneNo($phone)) {
echo json_encode(['code'=>400,'msg'=>'手机号码不符合!','data'=>[]]);exit; echo json_encode(['code'=>400,'msg'=>'手机号码不符合!','data'=>[]]);exit;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment