544782275@qq.com il y a 3 ans
Parent
commit
d80f2f3bd5
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      application/store/controller/Engineer.php

+ 3 - 0
application/store/controller/Engineer.php

@@ -77,6 +77,9 @@ class Engineer extends Controller
             if(!preg_match("/^1[23456789]\d{9}$/", $data['phone'])){
                 $this->error('手机号格式不正确');
             }
+            if(empty($data['headimg'])){
+                $this->error('请上传头像');
+            }
             //查看手机号是否已有账号
             $engineer_id = Db::name('store_engineer')->where('phone',$data['phone'])->value('id');
             if($engineer_id){