From ed561dcbabcabfdef2711b2f60e0e11003ab9814 Mon Sep 17 00:00:00 2001 From: donghongyu Date: Mon, 15 Jul 2024 18:24:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=85=E5=9C=A8=E6=9C=AC=E5=9C=B0=E6=97=A0SN?= =?UTF-8?q?=E3=80=81Token=E7=BC=93=E5=AD=98=E7=9A=84=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E9=89=B4=E6=9D=83=E5=A4=B1=E8=B4=A5=E5=90=8E?= =?UTF-8?q?=E8=BF=9B=E8=A1=8CToast=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mogo/cloud/passport/MoGoAiCloudClient.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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("");