|
|
|
@ -151,9 +151,13 @@ class LoginController extends GetxController { |
|
|
|
try { |
|
|
|
final response = await _userApi.getMarriageInformationDetail(); |
|
|
|
|
|
|
|
// 打印响应数据以便调试 |
|
|
|
print('响应数据: ${response.data.data}'); |
|
|
|
print('数据类型: ${response.data.data.runtimeType}'); |
|
|
|
print('数据是否为null: ${response.data.data == null}'); |
|
|
|
|
|
|
|
if (response.data.isSuccess) { |
|
|
|
SmartDialog.showToast('跳转到完善信息'); |
|
|
|
// 可以在这里处理用户婚姻信息详情,比如更新UI状态或保存到存储中 |
|
|
|
// 检查data是否为null或者是空对象 |
|
|
|
if(response.data.data == null){ |
|
|
|
//跳转到完善信息 |
|
|
|
SmartDialog.showToast('跳转到完善信息'); |
|
|
|
@ -163,6 +167,7 @@ class LoginController extends GetxController { |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
// 获取婚姻信息失败不影响登录流程 |
|
|
|
print('获取婚姻信息异常: $e'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |