mac
2023-12-14 2a6c0d9a93923f852a90f9f53f5e75985ad5bf73
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);
@@ -641,8 +641,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 +663,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 +685,8 @@
        public int step;
        //进度描述信息
        public String describe;
        //表示是驱动,固件;
        public String type;
    }