fix: 一键登录逻辑没有触发以及执行一键登录逻辑失败后没有任何提示信息。

This commit is contained in:
Liuyf 2025-04-21 18:40:47 +08:00
parent 5628b3f31a
commit 4242ac0a80
2 changed files with 7 additions and 0 deletions

View File

@ -136,6 +136,8 @@ class StarLockLoginLogic extends BaseGetXController {
'login_res': '${entity.errorCode}--${entity.errorMsg}',
});
}
} else {
showToast('一键登录失败,请重试'.tr);
}
});
}
@ -215,6 +217,7 @@ class StarLockLoginLogic extends BaseGetXController {
//
Future<void> flushedDeviceInfo() async {
eventBus.fire(AgreePrivacyAgreement());
XSConstantMacro().getDeviceInfoData().then((Map<String, dynamic> data) {
state.deviceInfoMap.value = data;
}).catchError((dynamic error) {

View File

@ -95,6 +95,7 @@ class JverifyOneClickLoginManage {
///
Future<bool> checkVerifyEnable() async {
final Map map = await jverify.checkVerifyEnable();
AppLog.log('一家登录 sdk 初始化结果:$map');
final bool result = map[f_result_key];
return result;
// state.jverify.checkVerifyEnable().then((map) {
@ -267,6 +268,9 @@ class JverifyOneClickLoginManage {
action(event);
// AppLog.log('获取到 loginAuthSyncApi 接口返回数据code=${event.code},message = ${event.message},operator = ${event.operator}');
});
} else {
// -10000
action(JVListenerEvent.fromJson({'code': -10000, 'message': ''}));
}
}
}