Commit 759edfce by LiuJunYi

手机号验证

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