仅在本地无SN、Token缓存的情况下,鉴权失败后进行Toast提示
This commit is contained in:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user