@@ -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('账号类型不可修改');