更新
This commit is contained in:
@@ -243,6 +243,17 @@ class LoginController extends GetControllerEx<LoginModel> {
|
||||
final box = GetStorage();
|
||||
box.write('token', token); // 存储 token
|
||||
box.write('user', userInfoController.model.user!.toJson()); // 存储用户信息
|
||||
if (userInfoController.model.user!.phone == null ||
|
||||
userInfoController.model.user!.phone!.isEmpty) {
|
||||
Map data = {
|
||||
'img': "assets/img/bgNoImg.png",
|
||||
};
|
||||
await Get.toNamed("/auth_bind_tel", arguments: data);
|
||||
}
|
||||
if (userInfoController.model.user!.phone == null ||
|
||||
userInfoController.model.user!.phone!.isEmpty) {
|
||||
userInfoController.model.login = 0;
|
||||
}
|
||||
}
|
||||
return apiResponse;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user