lizhen 2 giorni fa
parent
commit
b0a567dd1e

+ 1 - 0
application/admin/controller/Servicegrade.php

@@ -24,6 +24,7 @@ class Servicegrade extends Backend
     {
         parent::_initialize();
         $this->model = new \app\admin\model\Servicegrade;
+        $this->multiFields = 'status_switch';
 
     }
 

+ 3 - 3
application/api/controller/User.php

@@ -57,7 +57,7 @@ class User extends Api
     {
         $avatar = input('avatar', '', 'trim,strip_tags,htmlspecialchars');
         $nickname = input('nickname', '');
-        $mobile = input('mobile', '');
+//        $mobile = input('mobile', '');
         $gender = input('gender', '1');
         $birthday = input('birthday', '');
         $height = input('height', '');
@@ -76,13 +76,13 @@ class User extends Api
             $data['nickname'] = $nickname;
         }
 
-        if(!empty($mobile))
+        /*if(!empty($mobile))
         {
             if (\app\common\model\User::where('mobile', $mobile)->where('id', '<>', $this->auth->id)->find()) {
                 $this->error('手机号已被其他人使用');
             }
             $data['mobile'] = $mobile;
-        }
+        }*/
 
         if($gender != $this->auth->gender)
         {