Commit 69d0d10a by LiuJunYi

手机号验证

parent f1da2df1
...@@ -151,7 +151,7 @@ class Order extends Base ...@@ -151,7 +151,7 @@ class Order extends Base
$res = $validate->check(input('post.')); $res = $validate->check(input('post.'));
if (!$res) return ['code' => 1, 'msg' => $validate->getError()]; if (!$res) return ['code' => 1, 'msg' => $validate->getError()];
//生成订单 //生成订单
$is_phone = UserModel::where('id',$this->userinfo[0])->where('phone','neq','')->find(); $is_phone = UserModel::where('id',$this->userinfo[0])->where('phone',null)->find();
if(!$is_phone){ if(!$is_phone){
return ['code'=>1,'msg'=>'请填写手机号']; return ['code'=>1,'msg'=>'请填写手机号'];
} }
......
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