Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
break;
case "login":
if (oneKeyLoginPublic != null) {
oneKeyLoginPublic.startLogin(LoginParams.jsonObject.getIntValue("timeout", 5000));
if (!oneKeyLoginPublic.sdkAvailable) {
_events.success(UtilTool.resultFormatData("500005", null, ""));
} else {
oneKeyLoginPublic.startLogin(LoginParams.jsonObject.getIntValue("timeout", 5000));
}
} else {
// result.error("500002", "该接口为延时登录接口,请先初始化后再次调用该接口!", null);
_events.success(UtilTool.resultFormatData("500003", null, ""));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public enum StatusAll {
Status500002("校验成功,可进行一键登录!", "500002"),
Status500003("该接口为延时登录接口,请先初始化后再次调用该接口!", "500003"),
Status500004("插件启动监听成功, 当前SDK版本: %s", "500004"),
Status500005("SDK初始化完成,但一键登录不可用!", "500005"),
Status600000("获取token成功!", "600000"),
Status600001("唤起授权页成功!", "600001"),
Status600002("唤起授权⻚失败!建议切换到其他登录⽅式", "600002"),
Expand Down
1 change: 1 addition & 0 deletions ios/Classes/AliAuthEnum.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ + (NSDictionary *)initData {
@"500002": @"校验成功,可进行一键登录!",
@"500003": @"该接口为延时登录接口,请先初始化后再次调用该接口!",
@"500004": @"插件启动监听成功, 当前SDK版本: %@",
@"500005": @"SDK初始化完成,但一键登录不可用!",
@"600000": @"获取token成功!",
@"600001": @"唤起授权页成功!",
@"600002": @"唤起授权⻚失败!建议切换到其他登录⽅式",
Expand Down