From 0c1949984e4c59d4ae5f2d96c6b7438364642a08 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 12 十二月 2024 17:25:18 +0800 Subject: [PATCH] 2024年12月12日17:25:15 --- app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java index dfcc18d..da162bc 100644 --- a/app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java +++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java @@ -222,7 +222,7 @@ public void getUserInfo_B(CloudCallBeak<BUserInfo> cloudCallBeak) { String requestUrl = HttpApi.B_POST_GET_USERINFO; JsonObject json = new JsonObject(); - json.addProperty("userId",UserConfigManage.getInstance().getUserId()); + json.addProperty("userId", UserConfigManage.getInstance().getUserId()); HttpClient.getInstance().requestHttp(requestUrl, json.toString(), new CloudCallBeak<String>() { @Override public void onSuccess(String jsonStr) { @@ -693,7 +693,7 @@ if (obj != null) { boolean isUserId = UserConfigManage.getInstance().getUserId().equals(obj.getUserId()); UserConfigManage.getInstance().setTheSameLoginAccount(isUserId);//涓庝笂涓�涓处鍙锋槸鍚﹀悓涓�涓� - if (!UserConfigManage.getInstance().isTheSameLoginAccount()) { + if (!TextUtils.isEmpty(UserConfigManage.getInstance().getUserId()) && !UserConfigManage.getInstance().isTheSameLoginAccount()) { //涓嶅悓璐﹀彿,鍒犻櫎涔嬪墠鐨勬棫璐﹀彿鏃ュ織淇℃伅; HdlFileLogic.getInstance().deleteDirectory(HdlFileLogic.getInstance().getCurrentUserRootPath()); } -- Gitblit v1.8.0