From 770c89ab981b7659faabf8a812a25d99a11bdebf Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 16 四月 2026 08:40:43 +0800
Subject: [PATCH] 2026年04月16日08:40:19

---
 app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java |   71 +++++++++++++++++++++++++++++++++--
 1 files changed, 67 insertions(+), 4 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java b/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java
index 359774d..c47623d 100644
--- a/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java
+++ b/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java
@@ -6,6 +6,7 @@
 import com.google.gson.Gson;
 import com.hdl.photovoltaic.HDLApp;
 import com.hdl.photovoltaic.enums.Languages;
+import com.hdl.photovoltaic.enums.PowerStationType;
 import com.hdl.photovoltaic.other.HdlFileLogic;
 import com.hdl.photovoltaic.other.HdlLogLogic;
 import com.hdl.photovoltaic.other.HdlResidenceLogic;
@@ -64,6 +65,44 @@
     private boolean isB_account;
     //鏄惁姝e紡鏈嶅姟鍣�(true锛氭寮忥紝false锛氭祴璇�)
     private boolean isOnlineServer = true;
+
+    //鏅鸿兘浣撴帴鍙e瘑閽�
+    private String agentSecret;
+    //鏅鸿兘浣撴帴鍙e湴鍧�
+    private String agentUrl;
+    //褰撳墠浼氳瘽ID
+    private String conversationId;
+    //鐢电珯绫诲瀷(INV = 閫嗗彉鍣ㄧ數绔�;BMS = BMS鐢电珯)
+    private String powerStationType = PowerStationType.INV;
+
+    public String getAgentUrl() {
+        return agentUrl == null ? "" : agentUrl;
+    }
+
+    public void setAgentUrl(String agentUrl) {
+        this.agentUrl = agentUrl;
+    }
+
+    /**
+     * 鏅鸿兘浣揂ppKey
+     *
+     * @return 鏅鸿兘浣揂ppKey
+     */
+    public String getAgentSecret() {
+        return agentSecret == null ? "" : agentSecret;
+    }
+
+    public void setAgentSecret(String agentApiKey) {
+        this.agentSecret = agentApiKey;
+    }
+
+    public String getConversationId() {
+        return conversationId == null ? "" : conversationId;
+    }
+
+    public void setConversationId(String conversationId) {
+        this.conversationId = conversationId;
+    }
 
     public boolean isOnlineServer() {
         return isOnlineServer;
@@ -133,13 +172,16 @@
 
     /**
      * 鏄惁鏄父瀹㈡ā寮�
+     *
      * @return (true=娓稿妯″紡,false=姝e父妯″紡)
      */
     public boolean isTourist_mode() {
         return tourist_mode;
     }
+
     /**
      * 鏄惁鏄父瀹㈡ā寮�
+     *
      * @return (true=娓稿妯″紡,false=姝e父妯″紡)
      */
     public void setTourist_mode(boolean tourist_mode) {
@@ -147,27 +189,30 @@
     }
 
 
-
     /**
      * 鐢ㄦ潵娓稿妯″紡鍐峰惎鍔ㄥ己鍒惰烦鍒扮櫥褰曠晫闈㈡爣璁�
-     *  true=娓稿妯″紡,鍐峰惎鍔ㄥ己鍒惰烦杞櫥褰曠晫闈紝false锛氭寜姝e父娴佺▼璺�
+     * true=娓稿妯″紡,鍐峰惎鍔ㄥ己鍒惰烦杞櫥褰曠晫闈紝false锛氭寜姝e父娴佺▼璺�
      */
     private boolean isTouristModeJumpLogic = false;
 
     /**
      * 鐢ㄦ潵娓稿妯″紡鍐峰惎鍔ㄥ己鍒惰烦鍒扮櫥褰曠晫闈㈡爣璁�
+     *
      * @return true=娓稿妯″紡,鍐峰惎鍔ㄥ己鍒惰烦杞櫥褰曠晫闈紝false锛氭寜姝e父娴佺▼璺�
      */
     public boolean isTouristModeJumpLogic() {
         return isTouristModeJumpLogic;
     }
+
     /**
      * 鐢ㄦ潵娓稿妯″紡鍐峰惎鍔ㄥ己鍒惰烦鍒扮櫥褰曠晫闈㈡爣璁�
+     *
      * @return true=娓稿妯″紡,鍐峰惎鍔ㄥ己鍒惰烦杞櫥褰曠晫闈紝false锛氭寜姝e父娴佺▼璺�
      */
     public void setTouristModeJumpLogic(boolean touristModeJumpLogic) {
         isTouristModeJumpLogic = touristModeJumpLogic;
     }
+
     public boolean isAutomaticSkipNoNetworkFlag() {
         return automaticSkipNoNetworkFlag;
     }
@@ -406,6 +451,18 @@
     }
 
     /**
+     * 鐢电珯绫诲瀷(INV = 閫嗗彉鍣ㄧ數绔�;BMS = BMS鐢电珯)
+     * @return 鐢电珯绫诲瀷(INV = 閫嗗彉鍣ㄧ數绔�;BMS = BMS鐢电珯)
+     */
+    public String getPowerStationType() {
+        return powerStationType;
+    }
+
+    public void setPowerStationType(String powerStationType) {
+        this.powerStationType = powerStationType;
+    }
+
+    /**
      * uni涓�绾х晫闈㈢殑瀹夊叏璺濈鑳屾櫙棰滆壊锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛�
      *
      * @return 鍊�
@@ -442,6 +499,14 @@
         return m_Home;
     }
 
+    /**
+     * 鏄笉鏄樋鎷変集璇█
+     *
+     * @return true琛ㄧず鏄樋鎷変集璇█锛屽惁鍒欎笉鏄�
+     */
+    public boolean isArabicLanguage() {
+        return this.currentAppLanguage.equals(Languages.ar);
+    }
 
     /**
      * 鍒锋柊
@@ -473,8 +538,6 @@
         HdlFileLogic.getInstance().writeFile(HdlFileLogic.getInstance().getUserFilePath(), json);
 //        SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance());
     }
-
-
 
 
 }

--
Gitblit v1.8.0