Browse Source

获取用户信息信息

ios
Jolie 4 months ago
parent
commit
2aad43bb37
1 changed files with 7 additions and 2 deletions
  1. 9
      lib/pages/mine/login_controller.dart

9
lib/pages/mine/login_controller.dart

@ -151,9 +151,13 @@ class LoginController extends GetxController {
try { try {
final response = await _userApi.getMarriageInformationDetail(); final response = await _userApi.getMarriageInformationDetail();
// 便
print('响应数据: ${response.data.data}');
print('数据类型: ${response.data.data.runtimeType}');
print('数据是否为null: ${response.data.data == null}');
if (response.data.isSuccess) { if (response.data.isSuccess) {
SmartDialog.showToast('跳转到完善信息');
// UI状态或保存到存储中
// data是否为null或者是空对象
if(response.data.data == null){ if(response.data.data == null){
// //
SmartDialog.showToast('跳转到完善信息'); SmartDialog.showToast('跳转到完善信息');
@ -163,6 +167,7 @@ class LoginController extends GetxController {
} }
} catch (e) { } catch (e) {
// //
print('获取婚姻信息异常: $e');
} }
} }
} }
Loading…
Cancel
Save