Commit f1da2df1 by LiuJunYi

手机号验证

parent 8a63481b
...@@ -151,7 +151,10 @@ class Order extends Base ...@@ -151,7 +151,10 @@ 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();
if(!$is_phone){
return ['code'=>1,'msg'=>'请填写手机号'];
}
try { try {
//开始事务 //开始事务
Db::startTrans(); Db::startTrans();
......
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