R55-R58: AI脚本弹窗版本条(新在右旧在左)+教程完整链维度不适用即隐藏+热点账号日榜+脚本删除按钮(级联诊断分镜, 含help-guide.js补纳入)
This commit is contained in:
1 parent
3343323226
commit
32565a7881
8 files changed
+747
-107
No files matched your search
@@ -497,6 +497,20 @@ const server = http.createServer((req, res) => {
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (p === '/api/dsh/script-delete' && req.method === 'POST') {
|
||||
if (dshGuard()) return;
|
||||
let body = '';
|
||||
req.on('data', (c) => { body += c; if (body.length > 1e6) req.destroy(); });
|
||||
req.on('end', () => {
|
||||
try {
|
||||
const { id } = JSON.parse(body || '{}');
|
||||
if (!(Number(id) > 0)) return sendErr(400, '缺少脚本 id');
|
||||
const r = dsh.deleteScript(Number(id)); /* R58:连坐删除该脚本的诊断复盘与分镜提示词 */
|
||||
return dshOk(200, { ok: true, deleted: r.deleted });
|
||||
} catch (e) { return sendErr(500, e.message); }
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (p === '/api/dsh/account-videos') {
|
||||
if (dshGuard()) return;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user