多余日志清理,修复部分作品无法创建文件夹的问题

This commit is contained in:
2025-08-24 15:58:22 +08:00
parent 8d19acf8f3
commit a35e82731d
10 changed files with 410 additions and 354 deletions
-6
View File
@@ -8,7 +8,6 @@ const DownloadService = require('../services/download');
*/
router.post('/artwork/:id', async (req, res) => {
try {
console.log(`收到下载请求: 作品ID ${req.params.id}`);
const { id } = req.params;
const {
size = 'original',
@@ -17,8 +16,6 @@ router.post('/artwork/:id', async (req, res) => {
skipExisting = true
} = req.body;
console.log(`下载参数: size=${size}, quality=${quality}, format=${format}, skipExisting=${skipExisting}`);
if (!id || isNaN(parseInt(id))) {
return res.status(400).json({
success: false,
@@ -27,7 +24,6 @@ router.post('/artwork/:id', async (req, res) => {
}
const downloadService = req.backend.getDownloadService();
console.log('开始调用下载服务...');
const result = await downloadService.downloadArtwork(parseInt(id), {
size,
quality,
@@ -35,8 +31,6 @@ router.post('/artwork/:id', async (req, res) => {
skipExisting
});
console.log('下载服务返回结果:', result);
if (result.success) {
res.json({
success: true,