fix: 品牌保护+知识库全量覆盖 - 6层防御解决传销问题 + 30+产品关键词补全

This commit is contained in:
User
2026-03-17 11:00:09 +08:00
parent f97dd7e3d5
commit 0560db1048
46 changed files with 1948 additions and 120 deletions

View File

@@ -0,0 +1,21 @@
const { Client } = require('ssh2');
const c = new Client();
c.on('ready', () => {
const cmd = [
"echo '=== RECENT KB RELATED LOGS ==='",
"grep -E 'searchKnowledge|Ark KB|rewritten|classifyKnowledge|tryKnowledge|shouldForce|Chat.*User|Chat.*Assistant|基础三合一|三合一|胡辣汤' /var/log/bigwo/server-out.log | tail -80",
"echo ''",
"echo '=== RECENT CHAT LOGS ==='",
"grep -E '\\[Chat\\]' /var/log/bigwo/server-out.log | tail -30",
"echo ''",
"echo '=== RECENT ERRORS ==='",
"grep -iE 'error|failed|timeout' /var/log/bigwo/server-out.log | tail -20",
].join(' && ');
c.exec(cmd, (err, s) => {
if (err) { console.error(err); c.end(); return; }
let o = '';
s.on('data', (d) => (o += d));
s.stderr.on('data', (d) => (o += d));
s.on('close', () => { console.log(o); c.end(); });
});
}).connect({ host: '119.45.10.34', port: 22, username: 'root', password: '#xyzh%CS#2512@28' });