From 14bcc4721b00afc9153865f57117a458f68cdf5d Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 19 五月 2025 20:40:49 +0800
Subject: [PATCH] 2025年05月19日20:40:47

---
 app/src/main/java/com/hdl/photovoltaic/HDLApp.java |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/HDLApp.java b/app/src/main/java/com/hdl/photovoltaic/HDLApp.java
index 4062fe9..db20c5c 100644
--- a/app/src/main/java/com/hdl/photovoltaic/HDLApp.java
+++ b/app/src/main/java/com/hdl/photovoltaic/HDLApp.java
@@ -44,7 +44,7 @@
 import com.hdl.sdk.link.core.connect.HDLUdpConnect;
 import com.hdl.sdk.link.core.utils.QueueUtils;
 import com.hdl.sdk.link.core.utils.mqtt.MqttRecvClient;
-import com.umeng.commonsdk.UMConfigure;
+//import com.umeng.commonsdk.UMConfigure;
 
 import org.greenrobot.eventbus.EventBus;
 
@@ -53,7 +53,7 @@
 import java.util.Locale;
 import java.util.Objects;
 
-import cn.jpush.android.api.JPushInterface;
+//import cn.jpush.android.api.JPushInterface;
 import io.dcloud.common.util.RuningAcitvityUtil;
 import me.jessyan.autosize.AutoSize;
 import me.jessyan.autosize.AutoSizeConfig;
@@ -63,7 +63,7 @@
 
 public class HDLApp extends Application {
 
-    final String TAG=HDLApp.class.getName();
+    final String TAG = HDLApp.class.getName();
     //鎺у埗鎵撳嵃 Debug妯″紡鎵撳嵃
     private Boolean isLogEnabled = true;
     //涓夋柟sdk鍒濆鍖栨爣璇�
@@ -180,8 +180,8 @@
         this.networkMonitoring();
         //鍒濆鍖栨湰鍦癮ssets鏂囦欢澶硅祫婧愭枃浠�
 //        this.initLocalAssetsData();
-        //鍒濆鍖栧弸鐩烻DK
-        initUMengSDK();
+//        //鍒濆鍖栧弸鐩烻DK锛屾斁鍦⊿tartActivity閲岄潰鍒濆鍖�
+//        initUMengSDK();
 
 
     }
@@ -191,12 +191,12 @@
      * 闆嗘垚鏁欑▼鍦板潃锛歨ttps://developer.umeng.com/docs/119267/detail/118588
      */
     private void initUMengSDK() {
-        UMConfigure.preInit(this, "6801aec0bc47b67d833fd76d", "XenterraSolar");
-        //appkey鍜宑hannl蹇呴』淇濇寔鍜岄鍒濆鍖栦竴鑷达紒锛侊紒
-        //deviceType锛氳澶囩被鍨嬶紝UMConfigure.DEVICE_TYPE_PHONE涓烘墜鏈恒�乁MConfigure.DEVICE_TYPE_BOX涓虹洅瀛�
-        //pushSecret锛歅ush鎺ㄩ�佷笟鍔$殑secret
-        UMConfigure.init(this, "6801aec0bc47b67d833fd76d", "XenterraSolar", UMConfigure.DEVICE_TYPE_PHONE, "");
-        UMConfigure.setLogEnabled(false);//AppConfigManage.isDebug()
+//        UMConfigure.preInit(this, "6801aec0bc47b67d833fd76d", "XenterraSolar");
+//        //appkey鍜宑hannl蹇呴』淇濇寔鍜岄鍒濆鍖栦竴鑷达紒锛侊紒
+//        //deviceType锛氳澶囩被鍨嬶紝UMConfigure.DEVICE_TYPE_PHONE涓烘墜鏈恒�乁MConfigure.DEVICE_TYPE_BOX涓虹洅瀛�
+//        //pushSecret锛歅ush鎺ㄩ�佷笟鍔$殑secret
+//        UMConfigure.init(this, "6801aec0bc47b67d833fd76d", "XenterraSolar", UMConfigure.DEVICE_TYPE_PHONE, "");
+//        UMConfigure.setLogEnabled(false);//AppConfigManage.isDebug()
     }
 
 
@@ -235,6 +235,8 @@
                 AppManagerUtils.getAppManager().finishAllActivity();
 //                HDLSDKSPUtils.clear();//搴曞眰鑷繁娓呯┖
 
+                //娓呯┖浣忓畢id
+                UserConfigManage.getInstance().setHomeId("");
                 //閲嶆柊鐧婚檰,榛樿鍚屾剰闅愮鏀跨瓥
                 UserConfigManage.getInstance().setAcceiptPolicy(false);
                 //閲嶆柊璁惧畾涓�涓椂闂�
@@ -303,8 +305,8 @@
      * 鍒濆鍖栨瀬鍏塖DK
      */
     private void initJPush() {
-        JPushInterface.setDebugMode(true);
-        JPushInterface.init(getBaseContext());
+//        JPushInterface.setDebugMode(true);
+//        JPushInterface.init(getBaseContext());
     }
 
     /**

--
Gitblit v1.8.0