|
@@ -154,7 +154,7 @@ class User extends UserModel
|
|
|
'mobile'=> $data['mobile'],
|
|
'mobile'=> $data['mobile'],
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
- if($userInfo['user_type']<=0){
|
|
|
|
|
|
|
+ if($userInfo['user_type']<=0 || (is_null($info) || $info['school_id']<=0)){
|
|
|
$userData['user_type'] = (int)$data['user_type'];
|
|
$userData['user_type'] = (int)$data['user_type'];
|
|
|
}
|
|
}
|
|
|
|
|
|