优化下载进度检测
This commit is contained in:
parent
9fcf9d0982
commit
009f8bfa76
@ -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);
|
||||
|
||||
@ -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
Loading…
Reference in New Issue
Block a user