mac
2023-12-11 f97ff347cc7d42c6511e3ebb4bfc23b119e1e445
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;
    }