R64-R70: 工作台迭代—视频解析执行状态跨刷新/找不到MCP根因修复/全量排查需MCP功能挂connector/刷新功能强制重新获取/自定义选题创作改名原创选题创作+系列UI微调(cdp-verify回归脚本)
This commit is contained in:
1 parent
b805b77315
commit
1a5d319bfc
17 files changed
+745
-65
No files matched your search
@@ -527,8 +527,8 @@ function getRanking({ board = 'week', date = '', category = '', sortBy = '', ord
|
||||
return { dates, categories, category, date: selDate, total, page: Math.max(1, Number(page) || 1), pageSize: limit, items: pageItems };
|
||||
}
|
||||
|
||||
/* ================= AI写脚本:自定义选题(无视频载体)================= */
|
||||
/* 09-02 v25:账号列表「AI创作」(自定义选题,无原视频)入库的脚本 = video_id 空。此处逐条列出该类脚本 */
|
||||
/* ================= AI写脚本:原创选题(无视频载体)================= */
|
||||
/* 09-02 v25:账号列表「AI创作」(原创选题,无原视频)入库的脚本 = video_id 空。此处逐条列出该类脚本 */
|
||||
function listCustomScripts({ page = 1, pageSize = 20, search = '', days = '', account = '' } = {}) {
|
||||
const d = getDb();
|
||||
if (!d) return { total: 0, page: 1, pageSize, items: [] };
|
||||
@@ -550,16 +550,16 @@ function listCustomScripts({ page = 1, pageSize = 20, search = '', days = '', ac
|
||||
return { total, page: Math.max(1, Number(page) || 1), pageSize: limit, items };
|
||||
}
|
||||
|
||||
/* 自定义选题脚本全文(查看弹窗用,避免列表全量携带大文本) */
|
||||
/* 原创选题脚本全文(查看弹窗用,避免列表全量携带大文本) */
|
||||
function getCustomScript(id) {
|
||||
const d = getDb(); if (!d) throw new Error('数据库不可用');
|
||||
const row = d.prepare(`SELECT r.id, r.video_id, r.account_id, r.title, r.topic, r.script_text, r.status, r.created_time, r.updated_time, h.account_name
|
||||
FROM rewrite_log r LEFT JOIN hot_accounts h ON h.id=r.account_id WHERE r.id=?`).get(Number(id));
|
||||
if (!row || row.video_id) throw new Error('脚本不存在或非自定义选题脚本');
|
||||
if (!row || row.video_id) throw new Error('脚本不存在或非原创选题脚本');
|
||||
return row;
|
||||
}
|
||||
|
||||
/* 写库:AI创作任务完成后回调保存脚本(自定义选题 videoId 省略/0 → video_id=NULL;参考选题传 videoId)
|
||||
/* 写库:AI创作任务完成后回调保存脚本(原创选题 videoId 省略/0 → video_id=NULL;参考选题传 videoId)
|
||||
可写连接单独打开(与只读 getDb 隔离),与 setFavorite 同模式 */
|
||||
function saveScript({ videoId, awemeId, accountId, title, scriptText }) {
|
||||
if (!fs.existsSync(DSH_DB)) throw new Error('数据库不可用');
|
||||
@@ -577,7 +577,7 @@ function saveScript({ videoId, awemeId, accountId, title, scriptText }) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 09-02 v25:AI写脚本 三 tab 徽标计数——按 有原视频(参考选题)/无原视频(自定义选题) 拆分;
|
||||
/* 09-02 v25:AI写脚本 三 tab 徽标计数——按 有原视频(参考选题)/无原视频(原创选题) 拆分;
|
||||
口径与账号列表「AI脚本」列一致(status=done 且脚本非空);account 传账号名时按账号统计 */
|
||||
function getRewriteStats(account = '') {
|
||||
const d = getDb();
|
||||
|
||||
Reference in new issue
Block a user