fix: 定时任务修复+管理后台Task7支持 (Task4外键修复, Task7管理员邮箱动态查询, Task5限流防护, Task7加入SCRIPT_MAP)

This commit is contained in:
ZhuiGuangAI Dev
2026-05-30 18:03:48 +08:00
parent 4d5e7266b5
commit 10d1acb305
56 changed files with 2779 additions and 135 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/bin/bash
echo "=== CRONTAB ==="
crontab -l 2>&1
echo "=== NODE ==="
which node
node -v
echo "=== NPM ==="
which npm
npm -v
echo "=== LOGS DIR ==="
ls -la /home/ubuntu/zhuiguang-ai/logs/ 2>&1
echo "=== TASK LOGS (last 5 each) ==="
for f in /home/ubuntu/zhuiguang-ai/logs/*.log; do
echo "--- $(basename $f) ---"
tail -5 "$f" 2>&1
done
echo "=== ENV CHECK ==="
grep -E "DEEPSEEK|DATABASE_URL|GITHUB_TOKEN|NODE_TLS" /home/ubuntu/zhuiguang-ai/.env 2>&1
echo "=== SCRIPT TEST ==="
cd /home/ubuntu/zhuiguang-ai && node -e "
const fs = require('fs');
const path = require('path');
const scripts = fs.readdirSync('scripts').filter(f => f.endsWith('.mjs'));
for (const s of scripts) {
const stat = fs.statSync(path.join('scripts', s));
console.log(s, '-', stat.mtime.toISOString());
}
"
echo "=== PM2 LOGS ==="
pm2 logs zhuiguang-ai --lines 5 --nostream 2>&1