Explorar o código

Wesmiler 校企小程序 更新

wesmiler %!s(int64=4) %!d(string=hai) anos
pai
achega
15906050bf
Modificáronse 2 ficheiros con 6 adicións e 8 borrados
  1. 6 6
      app/api/model/User.php
  2. 0 2
      app/api/validate/user/Info.php

+ 6 - 6
app/api/model/User.php

@@ -244,21 +244,21 @@ class User extends UserModel
 
         if($data['user_type'] == 1){
 
-            if(empty($data['admission_year'])){
+            /*if(empty($data['admission_year'])){
                 throwError('请选择入学年份');
             }
 
             if(empty($data['education_certify'])){
                 throwError('请上传教育证明');
-            }
+            }*/
         }else if($data['user_type'] == 3){
             if(empty($data['position'])){
                 throwError('请选择职务');
             }
 
-            if(empty($data['work_certify'])){
+            /*if(empty($data['work_certify'])){
                 throwError('请上传职务证明');
-            }
+            }*/
         }
 
         if($userInfo['mobile'] != $data['mobile']) {
@@ -277,9 +277,9 @@ class User extends UserModel
             throwError('身份证号码已被使用');
         }
 
-        if(empty($data['idcard_front_img'])){
+        /*if(empty($data['idcard_front_img'])){
             throwError('请上传身份证明');
-        }
+        }*/
 
         $chekId = self::checkExistByMobile($data['mobile']);
         if($data['mobile'] && $chekId && $userInfo['user_id'] != $chekId){

+ 0 - 2
app/api/validate/user/Info.php

@@ -31,8 +31,6 @@ class Info extends Validate
         // 用户手机号
         'idcard' => ['require','idCard','max:20'],
         'real_name'=> ['require','max:20'],
-        'nick_name'=> ['require','max:100'],
-        'user_login'=> ['require','max:30'],
         'mobile'=> ['require','mobile'],
         'gender'=> ['require'],
         'user_type'=> ['require'],