diff --git a/src/api/VideoTaskCache.ts b/src/api/VideoTaskCache.ts index 694c71c..a808242 100644 --- a/src/api/VideoTaskCache.ts +++ b/src/api/VideoTaskCache.ts @@ -8,7 +8,7 @@ function cacheLog(value: string, color?: string) { try { const head = `[VideoTaskCache][${dateFormat(new Date(), "yyyy-MM-dd HH:mm:ss.SSS")}] `; value = head + value; - console.log(color ? value[color] : value); + // console.log(color ? value[color] : value); fs.ensureDirSync(path.dirname(LOG_PATH)); fs.appendFileSync(LOG_PATH, value + "\n"); } diff --git a/src/api/routes/video.ts b/src/api/routes/video.ts index 7b2c54d..ef5055f 100644 --- a/src/api/routes/video.ts +++ b/src/api/routes/video.ts @@ -17,7 +17,7 @@ export default { task_id, } = request.query; // 从 query 中获取 let res = videoTaskCache.getTaskStatus(task_id); - console.log("查询任务状态", task_id, 'res:',res); + // console.log("查询任务状态", task_id, 'res:',res); if(typeof res === 'string'){ return { created: util.unixTimestamp(),