Selaa lähdekoodia

Wesmiler 校企小程序 更新

wesmiler 4 vuotta sitten
vanhempi
commit
825f92907f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/api/model/User.php

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

@@ -136,7 +136,7 @@ class User extends UserModel
             throwError('已认证注册,无法修改学校,请联系客服');
         }
 
-        if ($userInfo['user_type'] && $data['user_type'] != $userInfo['user_type']){
+        if ((!is_null($info) && $info['school_id']) && $userInfo['user_type'] && $data['user_type'] != $userInfo['user_type']){
             throwError('账号类型不可修改');
         }