diff --git a/foudations/mogo-passport/src/main/java/com/mogo/cloud/passport/MoGoAiCloudClient.java b/foudations/mogo-passport/src/main/java/com/mogo/cloud/passport/MoGoAiCloudClient.java index 3c54140..625281b 100644 --- a/foudations/mogo-passport/src/main/java/com/mogo/cloud/passport/MoGoAiCloudClient.java +++ b/foudations/mogo-passport/src/main/java/com/mogo/cloud/passport/MoGoAiCloudClient.java @@ -99,9 +99,6 @@ public class MoGoAiCloudClient { @Override public void onError(int code, String msg) { - if(mAiCloudClientConfig.isShowToastLog()){ - Toast.makeText(mContext, "MoGo鉴权失败", Toast.LENGTH_SHORT).show(); - } Log.e(TAG, "═════════════════════════════════════"); Log.e(TAG, "║ MoGo鉴权失败 "); Log.e(TAG, "║ ErrorCode:" + code); @@ -116,6 +113,10 @@ public class MoGoAiCloudClient { return; } + if (mAiCloudClientConfig.isShowToastLog()) { + Toast.makeText(mContext, "首次鉴权失败,本地无历史缓存SN,请检查「设备时间」和「网络」", Toast.LENGTH_SHORT).show(); + } + // 变量赋值 if (mAiCloudClientConfig != null) { mAiCloudClientConfig.setSn("");