优化下载进度检测

This commit is contained in:
chuzhongzai 2023-08-14 22:21:50 +08:00
parent 9fcf9d0982
commit 009f8bfa76
4 changed files with 32 additions and 32 deletions

View File

@ -296,7 +296,7 @@ public class RemoteService {
GalleryTask[] galleryTasks = dsm.getGalleryTasks();
for (GalleryTask galleryTask : galleryTasks) {
Gallery gallery = galleryMapper.selectGalleryByGid(galleryTask.getGid());
if(galleryTask.getProceeding() == gallery.getPages()){
if(galleryTask.getStatus() == GalleryTask.DOWNLOAD_COMPLETE){
gallery.setStatus("下载完成");
gallery.setProceeding(galleryTask.getProceeding());
galleryMapper.updateGallery(gallery);

View File

@ -23,10 +23,10 @@ mybatis:
type-aliases-package: com.lion.lionwebsite.Dao
personal-service:
StoragePath: /root/
StoragePath: /storage/
gallery-manage-service:
target-path: /root/gallery/
target-path: /storage/gallery/
cache-size: 100
remote-service:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long