From cf826529c32d79e78e5fba86d3e4e1483d424d60 Mon Sep 17 00:00:00 2001 From: whyclxw <http://whyclxw@118.89.139.230:10101/r/~whyclxw/IdeaTest.git> Date: 星期五, 03 九月 2021 11:27:10 +0800 Subject: [PATCH] 最终版本 --- BattMonitor_FGCD-A059NT/src/com/dev/fgcd/comm/FGCD_TestDataDownLoad.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/BattMonitor_FGCD-A059NT/src/com/dev/fgcd/comm/FGCD_TestDataDownLoad.java b/BattMonitor_FGCD-A059NT/src/com/dev/fgcd/comm/FGCD_TestDataDownLoad.java index c5fe735..d8cdbdb 100644 --- a/BattMonitor_FGCD-A059NT/src/com/dev/fgcd/comm/FGCD_TestDataDownLoad.java +++ b/BattMonitor_FGCD-A059NT/src/com/dev/fgcd/comm/FGCD_TestDataDownLoad.java @@ -86,8 +86,10 @@ nowFbo = fbofile.files[i]; int file_downloadNum=i;//设置当前下载文件的索引 if(now_download_state == DownLoadState_DownLoadCancel) { - nowFbo.setDownload_state(DownLoadState_DownLoadCancel); - nowFbo.setDownload_flag(DownloadFlag_Fail); + fbofile.files[i].setDownload_state(DownLoadState_DownLoadCancel); + fbofile.files[i].setDownload_flag(DownloadFlag_Fail); + + FGCD_Task_Thread_SQL.updateFgcd_Filedownload_TableCmdByDevId(pool,fbofile,file_downloadNum); continue; } if(nowFbo.download_flag != DownloadFlag_Start) { @@ -102,8 +104,8 @@ now_download_state = FGCD_ComBase.CMD_DownLoadFBDFile_Over; fbofile.setStop_reason(FialReason_UserCancel); //手动终止下载命令 - nowFbo.setDownload_flag(DownloadFlag_Fail); - nowFbo.setDownload_state(DownLoadState_DownLoadCancel); + fbofile.files[file_downloadNum].setDownload_flag(DownloadFlag_Fail); + fbofile.files[file_downloadNum].setDownload_state(DownLoadState_DownLoadCancel); fbofile.op_cmd = FGCD_ComBase.CMD_DownLoadFBDFile_Over_ACK; FGCD_Task_Thread_SQL.updateFgcd_Filedownload_TableCmdByDevId(pool, fbofile,file_downloadNum); continue; -- Gitblit v1.9.1