From 8087a7d587c9bc3a448e4421bc604f3e71f181a3 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期五, 15 十二月 2023 18:07:33 +0800
Subject: [PATCH] 2023年12月15日18:07:27

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlOtaLogic.java |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlOtaLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlOtaLogic.java
index 0d490d5..52b2f7e 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlOtaLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlOtaLogic.java
@@ -14,7 +14,6 @@
 import com.hdl.linkpm.sdk.ota.bean.CloudDeviceFirmwaresBean;
 import com.hdl.linkpm.sdk.ota.bean.CloudGatewayDriversBean;
 import com.hdl.linkpm.sdk.ota.bean.DeviceFirmwareBean;
-import com.hdl.linkpm.sdk.ota.bean.DownloadUrlBean;
 import com.hdl.linkpm.sdk.ota.bean.GatewayDriverBean;
 import com.hdl.photovoltaic.HDLApp;
 import com.hdl.photovoltaic.config.UserConfigManage;
@@ -30,7 +29,6 @@
 import com.hdl.photovoltaic.utils.AppManagerUtils;
 import com.hdl.photovoltaic.utils.Md5Utils;
 import com.hdl.sdk.link.common.exception.HDLLinkException;
-import com.hdl.sdk.link.common.utils.ByteUtils;
 import com.hdl.sdk.link.core.bean.eventbus.BaseEventBus;
 import com.hdl.sdk.link.core.callback.HDLLinkCallBack;
 
@@ -590,7 +588,7 @@
                     fos.flush();
                     fos.close();
                     is.close();
-                    //todo 鐢ㄦ埛缁堟瀹剁户缁鍙栨暟鎹�;
+                    //todo 鐢ㄦ埛缁堟缁х画璇诲彇鏁版嵁;
                     return false;
                 }
                 fos.write(buf, 0, len);
@@ -641,8 +639,10 @@
      * @param describe      鎻忚堪鏂囨湰
      */
     public void eventBusPost(String fileFullPath, String type, int progressValue, String describe) {
+        HdlLogLogic.print("杩涘害鍊�====" + progressValue + "");
+
         if (this.stopDownload) {
-            HdlFileLogic.getInstance().deleteFile(fileFullPath);//鍒犻櫎涓嬭浇涓嶅畬鎴愭暟鎹�;
+            HdlFileLogic.getInstance().deleteFile(fileFullPath);//鍒犻櫎涓嬭浇涓嶅畬鏁存暟鎹�;
             BaseEventBus baseEventBus = new BaseEventBus();
             baseEventBus.setTopic(localDownloadProgress);
             Progress progress = new Progress();
@@ -661,11 +661,14 @@
         Progress progress = new Progress();
         progress.step = progressValue;
         progress.describe = describe;
+        progress.type = type;
         baseEventBus.setType(type);
         baseEventBus.setData(progress);
         EventBus.getDefault().post(baseEventBus);
 //            }
 //        });
+
+
     }
 
 
@@ -680,6 +683,8 @@
         public int step;
         //杩涘害鎻忚堪淇℃伅
         public String describe;
+        //琛ㄧず鏄┍鍔紝鍥轰欢;
+        public String type;
     }
 
 

--
Gitblit v1.8.0