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;
@@ -109,19 +145,70 @@
    private String userImageUrl = "/static/image/user-default-head.png";
    /// <summary>
    /// 注册极光ID,谷歌FCM的令牌
    /// </summary>
    /**
     * 注册极光ID,谷歌FCM的令牌
     */
    private String pushToken;
    /// <summary>
    /// 添加令牌到云端成功时返回的
    /// </summary>
    /**
     * 添加令牌到云端成功时返回的
     */
    private String pushId;
    /**
     * 无网模式标识(true=无网模式,false=正常模式)
     */
    private boolean noNetworkFlag = false;
    /**
     * 是否是游客模式(true=游客模式,false=正常模式)
     */
    private boolean tourist_mode = false;
    /**
     * 是否是游客模式
     *
     * @return (true=游客模式,false=正常模式)
     */
    public boolean isTourist_mode() {
        return tourist_mode;
    }
    /**
     * 是否是游客模式
     *
     * @return (true=游客模式,false=正常模式)
     */
    public void setTourist_mode(boolean tourist_mode) {
        this.tourist_mode = tourist_mode;
    }
    /**
     * 用来游客模式冷启动强制跳到登录界面标记
     * 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;
@@ -397,6 +484,14 @@
        return m_Home;
    }
    /**
     * 是不是阿拉伯语言
     *
     * @return true表示是阿拉伯语言,否则不是
     */
    public boolean isArabicLanguage() {
        return this.currentAppLanguage.equals(Languages.ar);
    }
    /**
     * 刷新
@@ -428,8 +523,6 @@
        HdlFileLogic.getInstance().writeFile(HdlFileLogic.getInstance().getUserFilePath(), json);
//        SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance());
    }
}