From 24ea247fa736f51a3f813736fce3199435e35c86 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 02 一月 2025 13:52:35 +0800
Subject: [PATCH] 2025年01月02日13:52:34

---
 app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 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 6602b66..15fb829 100644
--- a/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java
+++ b/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java
@@ -9,6 +9,7 @@
 import com.hdl.photovoltaic.other.HdlLogLogic;
 import com.hdl.photovoltaic.other.HdlResidenceLogic;
 import com.hdl.photovoltaic.ui.bean.HouseInfoBean;
+import com.hdl.photovoltaic.utils.LocalManageUtil;
 import com.hdl.photovoltaic.utils.SharedPreUtils;
 
 import java.util.ArrayList;
@@ -35,6 +36,9 @@
         return sUserConfigManage;
     }
 
+
+    //uni涓�绾х晫闈㈢殑瀹夊叏璺濈鑳屾櫙棰滆壊锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛�
+    private int uniBottomSafeDistanceBackgroundColor;
     //褰撳墠璐﹀彿锛氬埛鏂癟oken鐢ㄧ殑token(涓嶇敤璁板綍浠�涔堟湁鏁堟湡,濡傛灉鍒锋柊澶辫触,灏辫涪浜哄嵆鍙�)
     private String refreshToken;
     //璐︽埛鐧诲綍鎴愬姛鏃剁殑鏃堕棿
@@ -91,6 +95,10 @@
     private String currentAppLanguage;
 
 
+    //鐢ㄦ埛澶村儚
+    private String userImageUrl = "/static/image/user-default-head.png";
+
+
     /// <summary>
     /// 娉ㄥ唽鏋佸厜ID
     /// </summary>
@@ -100,6 +108,13 @@
     /// </summary>
     public String pushId;
 
+    public String getUserImageUrl() {
+        return userImageUrl == null ? "/static/image/user-default-head.png" : userImageUrl;
+    }
+
+    public void setUserImageUrl(String userImageUrl) {
+        this.userImageUrl = userImageUrl;
+    }
 
     public String getRegistrationID() {
         return registrationID == null ? "" : registrationID;
@@ -284,6 +299,24 @@
     }
 
     /**
+     * uni涓�绾х晫闈㈢殑瀹夊叏璺濈鑳屾櫙棰滆壊锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛�
+     *
+     * @return 鍊�
+     */
+    public int getUniBottomSafeDistanceBackgroundColor() {
+        return uniBottomSafeDistanceBackgroundColor;
+    }
+
+    /**
+     * uni涓�绾х晫闈㈢殑瀹夊叏璺濈鑳屾櫙棰滆壊锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛�
+     *
+     * @param uniBottomSafeDistanceBackgroundColor 锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛�
+     */
+    public void setUniBottomSafeDistanceBackgroundColor(int uniBottomSafeDistanceBackgroundColor) {
+        this.uniBottomSafeDistanceBackgroundColor = uniBottomSafeDistanceBackgroundColor;
+    }
+
+    /**
      * 褰撳墠浣忓畢
      */
     private HouseInfoBean m_Home = null;
@@ -334,5 +367,14 @@
 //        SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance());
     }
 
+    /**
+     * true琛ㄧず鏄腑鏂�
+     *
+     * @return true琛ㄧず鏄腑鏂�
+     */
+    public boolean isZh() {
+        return currentAppLanguage.equals(LocalManageUtil.zh);
+    }
+
 
 }

--
Gitblit v1.8.0