From f97ff347cc7d42c6511e3ebb4bfc23b119e1e445 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期一, 11 十二月 2023 18:24:30 +0800
Subject: [PATCH] 2023年12月11日18:23:44

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlOtaLogic.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 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..9beb137 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlOtaLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlOtaLogic.java
@@ -590,7 +590,7 @@
                     fos.flush();
                     fos.close();
                     is.close();
-                    //todo 鐢ㄦ埛缁堟瀹剁户缁鍙栨暟鎹�;
+                    //todo 鐢ㄦ埛缁堟缁х画璇诲彇鏁版嵁;
                     return false;
                 }
                 fos.write(buf, 0, len);
@@ -642,7 +642,7 @@
      */
     public void eventBusPost(String fileFullPath, String type, int progressValue, String describe) {
         if (this.stopDownload) {
-            HdlFileLogic.getInstance().deleteFile(fileFullPath);//鍒犻櫎涓嬭浇涓嶅畬鎴愭暟鎹�;
+            HdlFileLogic.getInstance().deleteFile(fileFullPath);//鍒犻櫎涓嬭浇涓嶅畬鏁存暟鎹�;
             BaseEventBus baseEventBus = new BaseEventBus();
             baseEventBus.setTopic(localDownloadProgress);
             Progress progress = new Progress();
@@ -661,6 +661,7 @@
         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 +681,8 @@
         public int step;
         //杩涘害鎻忚堪淇℃伅
         public String describe;
+        //琛ㄧず鏄┍鍔紝鍥轰欢;
+        public String type;
     }
 
 

--
Gitblit v1.8.0