wjc
2026-03-06 b9408687a3c0490289206b7e3b623d1490b38afd
app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java
@@ -63,7 +63,43 @@
    //是否是B端账号登录(true=B端)
    private boolean isB_account;
    //是否正式服务器(true:正式,false:测试)
    private boolean isOnlineServer = true;
    private boolean isOnlineServer = false;
    //智能体接口密钥
    private String agentSecret;
    //智能体接口地址
    private String agentUrl;
    //当前会话ID
    private String conversationId;
    public String getAgentUrl() {
        return agentUrl == null ? "" : agentUrl;
    }
    public void setAgentUrl(String agentUrl) {
        this.agentUrl = agentUrl;
    }
    /**
     * 智能体AppKey
     *
     * @return 智能体AppKey
     */
    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 +169,16 @@
    /**
     * 是否是游客模式
     *
     * @return (true=游客模式,false=正常模式)
     */
    public boolean isTourist_mode() {
        return tourist_mode;
    }
    /**
     * 是否是游客模式
     *
     * @return (true=游客模式,false=正常模式)
     */
    public void setTourist_mode(boolean tourist_mode) {
@@ -147,27 +186,30 @@
    }
    /**
     * 用来游客模式冷启动强制跳到登录界面标记
     *  true=游客模式,冷启动强制跳转登录界面,false:按正常流程跑
     * true=游客模式,冷启动强制跳转登录界面,false:按正常流程跑
     */
    private boolean isTouristModeJumpLogic = false;
    /**
     * 用来游客模式冷启动强制跳到登录界面标记
     *
     * @return true=游客模式,冷启动强制跳转登录界面,false:按正常流程跑
     */
    public boolean isTouristModeJumpLogic() {
        return isTouristModeJumpLogic;
    }
    /**
     * 用来游客模式冷启动强制跳到登录界面标记
     *
     * @return true=游客模式,冷启动强制跳转登录界面,false:按正常流程跑
     */
    public void setTouristModeJumpLogic(boolean touristModeJumpLogic) {
        isTouristModeJumpLogic = touristModeJumpLogic;
    }
    public boolean isAutomaticSkipNoNetworkFlag() {
        return automaticSkipNoNetworkFlag;
    }
@@ -442,6 +484,14 @@
        return m_Home;
    }
    /**
     * 是不是阿拉伯语言
     *
     * @return true表示是阿拉伯语言,否则不是
     */
    public boolean isArabicLanguage() {
        return this.currentAppLanguage.equals(Languages.ar);
    }
    /**
     * 刷新
@@ -473,8 +523,6 @@
        HdlFileLogic.getInstance().writeFile(HdlFileLogic.getInstance().getUserFilePath(), json);
//        SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance());
    }
}