From 2e91f8abdcb87feda9e237895d4460a19fd7aed8 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 10 一月 2025 15:41:23 +0800
Subject: [PATCH] 2025年01月10日15:40:19

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java |    5 +++--
 1 files changed, 3 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..f437064 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,8 @@
         if (obj != null) {
             boolean isUserId = UserConfigManage.getInstance().getUserId().equals(obj.getUserId());
             UserConfigManage.getInstance().setTheSameLoginAccount(isUserId);//涓庝笂涓�涓处鍙锋槸鍚﹀悓涓�涓�
-            if (!UserConfigManage.getInstance().isTheSameLoginAccount()) {
+            //UserConfigManage.getInstance().getUserId()琛ㄧず绗竴娆″畨瑁呯櫥褰�
+            if (!TextUtils.isEmpty(UserConfigManage.getInstance().getUserId()) && !UserConfigManage.getInstance().isTheSameLoginAccount()) {
                 //涓嶅悓璐﹀彿,鍒犻櫎涔嬪墠鐨勬棫璐﹀彿鏃ュ織淇℃伅;
                 HdlFileLogic.getInstance().deleteDirectory(HdlFileLogic.getInstance().getCurrentUserRootPath());
             }

--
Gitblit v1.8.0