From 70394b344e4c9aceb9e979eb4192bdbb28186deb Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 23 三月 2026 16:07:24 +0800
Subject: [PATCH] 2026年03月23日16:07:23
---
app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 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 6f0d251..8c6f293 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 = false;
+
+ //鏅鸿兘浣撴帴鍙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;
@@ -412,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 鍊�
@@ -450,6 +501,7 @@
/**
* 鏄笉鏄樋鎷変集璇█
+ *
* @return true琛ㄧず鏄樋鎷変集璇█锛屽惁鍒欎笉鏄�
*/
public boolean isArabicLanguage() {
--
Gitblit v1.8.0