全项目扫描修复: Docker数据卷修复+安全requireAdmin+12页SEO+API白名单+脚本超时+常量提取+假数据删除
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { readFileSync } from "fs";
|
||||
|
||||
const scripts = [
|
||||
"task3-check-tools.mjs",
|
||||
"task5-update-stars.mjs",
|
||||
"task6-review-hot.mjs",
|
||||
"daily-news.mjs",
|
||||
"task7-news-to-community.mjs",
|
||||
"daily-discover.mjs",
|
||||
];
|
||||
|
||||
for (const s of scripts) {
|
||||
const c = readFileSync("scripts/" + s, "utf-8");
|
||||
const hasFail = c.includes('"failed"');
|
||||
const hasCatch = c.includes(".catch(");
|
||||
const hasStartLog = c.includes("taskLog.create") || c.includes("logTask(");
|
||||
console.log(`${s.padEnd(35)} catch=${hasCatch} failLog=${hasFail} startLog=${hasStartLog}`);
|
||||
}
|
||||
Reference in New Issue
Block a user