|
|
|
@ -287,7 +287,7 @@ func loadFolders() ([]FolderInfo, error) { |
|
|
|
return nil, err |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for i, entry := range entries { |
|
|
|
for _, entry := range entries { |
|
|
|
if entry.IsDir() { |
|
|
|
if entry.IsDir() { |
|
|
|
folderPath := filepath.Join(absDownloadDir, entry.Name()) |
|
|
|
folderPath := filepath.Join(absDownloadDir, entry.Name()) |
|
|
|
fmt.Printf(" 处理文件夹: %s\n", folderPath) |
|
|
|
fmt.Printf(" 处理文件夹: %s\n", folderPath) |
|
|
|
@ -626,10 +626,7 @@ func processDownload(req *SaveImagesRequest) (*SaveImagesResponse, error) { |
|
|
|
var saved, failed int |
|
|
|
var saved, failed int |
|
|
|
if len(needDownload) > 0 { |
|
|
|
if len(needDownload) > 0 { |
|
|
|
successMap, errors := downloadImages(needDownload, comicDir) |
|
|
|
successMap, errors := downloadImages(needDownload, comicDir) |
|
|
|
|
|
|
|
_ = successMap |
|
|
|
// 使用 successMap 来检查哪些下载成功
|
|
|
|
|
|
|
|
// 虽然我们不直接使用 successMap,但它用于 downloadImages 函数的返回值
|
|
|
|
|
|
|
|
_ = successMap // 明确标记为使用(避免未使用警告)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 更新下载详情
|
|
|
|
// 更新下载详情
|
|
|
|
for i, detail := range details { |
|
|
|
for i, detail := range details { |
|
|
|
|