From b9408687a3c0490289206b7e3b623d1490b38afd Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 06 三月 2026 09:52:30 +0800
Subject: [PATCH] 2026年03月06日09:52:20 增加AI接口

---
 app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java |  140 ++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 120 insertions(+), 20 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 81c9c0b..6295c57 100644
--- a/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java
+++ b/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java
@@ -5,6 +5,7 @@
 
 import com.google.gson.Gson;
 import com.hdl.photovoltaic.HDLApp;
+import com.hdl.photovoltaic.enums.Languages;
 import com.hdl.photovoltaic.other.HdlFileLogic;
 import com.hdl.photovoltaic.other.HdlLogLogic;
 import com.hdl.photovoltaic.other.HdlResidenceLogic;
@@ -64,6 +65,42 @@
     //鏄惁姝e紡鏈嶅姟鍣�(true锛氭寮忥紝false锛氭祴璇�)
     private boolean isOnlineServer = false;
 
+    //鏅鸿兘浣撴帴鍙e瘑閽�
+    private String agentSecret;
+    //鏅鸿兘浣撴帴鍙e湴鍧�
+    private String agentUrl;
+    //褰撳墠浼氳瘽ID
+    private String conversationId;
+
+    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;
     }
@@ -108,19 +145,83 @@
     private String userImageUrl = "/static/image/user-default-head.png";
 
 
-    /// <summary>
-    /// 娉ㄥ唽鏋佸厜ID
-    /// </summary>
-    private String registrationID;
-    /// <summary>
-    /// 娣诲姞鏋佸厜ID鍒颁簯绔垚鍔熸椂杩斿洖鐨�
-    /// </summary>
+    /**
+     * 娉ㄥ唽鏋佸厜ID锛岃胺姝孎CM鐨勪护鐗�
+     */
+    private String pushToken;
+
+    /**
+     * 娣诲姞浠ょ墝鍒颁簯绔垚鍔熸椂杩斿洖鐨�
+     */
     private String pushId;
 
     /**
      * 鏃犵綉妯″紡鏍囪瘑(true=鏃犵綉妯″紡,false=姝e父妯″紡)
      */
     private boolean noNetworkFlag = false;
+
+
+    /**
+     * 鏄惁鏄父瀹㈡ā寮�(true=娓稿妯″紡,false=姝e父妯″紡)
+     */
+    private boolean tourist_mode = false;
+
+
+    /**
+     * 鏄惁鏄父瀹㈡ā寮�
+     *
+     * @return (true=娓稿妯″紡,false=姝e父妯″紡)
+     */
+    public boolean isTourist_mode() {
+        return tourist_mode;
+    }
+
+    /**
+     * 鏄惁鏄父瀹㈡ā寮�
+     *
+     * @return (true=娓稿妯″紡,false=姝e父妯″紡)
+     */
+    public void setTourist_mode(boolean tourist_mode) {
+        this.tourist_mode = tourist_mode;
+    }
+
+
+    /**
+     * 鐢ㄦ潵娓稿妯″紡鍐峰惎鍔ㄥ己鍒惰烦鍒扮櫥褰曠晫闈㈡爣璁�
+     * 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;
+    }
+
+    public void setAutomaticSkipNoNetworkFlag(boolean automaticSkipNoNetworkFlag) {
+        this.automaticSkipNoNetworkFlag = automaticSkipNoNetworkFlag;
+    }
+
+    /**
+     * 鑷姩璺宠浆鍒版棤缃戞ā寮�(true=鍚屾剰璺宠浆,false=涓嶅悓鎰忚烦杞�)
+     */
+    private boolean automaticSkipNoNetworkFlag = false;
 
     /**
      * 鏃犵綉妯″紡璁惧mac
@@ -164,12 +265,12 @@
         this.userImageUrl = userImageUrl;
     }
 
-    public String getRegistrationID() {
-        return registrationID == null ? "" : registrationID;
+    public String getPushToken() {
+        return pushToken == null ? "" : pushToken;
     }
 
-    public void setRegistrationID(String registrationID) {
-        this.registrationID = registrationID;
+    public void setPushToken(String pushToken) {
+        this.pushToken = pushToken;
     }
 
     public String getPushId() {
@@ -383,6 +484,14 @@
         return m_Home;
     }
 
+    /**
+     * 鏄笉鏄樋鎷変集璇█
+     *
+     * @return true琛ㄧず鏄樋鎷変集璇█锛屽惁鍒欎笉鏄�
+     */
+    public boolean isArabicLanguage() {
+        return this.currentAppLanguage.equals(Languages.ar);
+    }
 
     /**
      * 鍒锋柊
@@ -413,15 +522,6 @@
         String json = gson.toJson(sUserConfigManage);
         HdlFileLogic.getInstance().writeFile(HdlFileLogic.getInstance().getUserFilePath(), json);
 //        SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance());
-    }
-
-    /**
-     * true琛ㄧず鏄腑鏂�
-     *
-     * @return true琛ㄧず鏄腑鏂�
-     */
-    public boolean isZh() {
-        return currentAppLanguage.equals(LocalManageUtil.zh);
     }
 
 

--
Gitblit v1.8.0