fix: 一键登录逻辑没有触发以及执行一键登录逻辑失败后没有任何提示信息。
This commit is contained in:
parent
5628b3f31a
commit
4242ac0a80
@ -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) {
|
||||
|
||||
@ -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': ''}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user