|
|
@@ -2100,9 +2100,9 @@
|
|
|
.qr-c.t0 { background:#fafafa; color:#bbb; } .qr-c.t1 { background:#f1f8f1; }
|
|
|
.qr-c.t2 { background:#d8ecd8; } .qr-c.t3 { background:#b9ddb9; }
|
|
|
.qr-c.dead { color:#ccc; }
|
|
|
- .qr-c.keep { outline:2px solid #2563eb; outline-offset:-2px; cursor:pointer; font-weight:600; }
|
|
|
- .qr-c.keep:hover { background:#dbe7ff; }
|
|
|
- .qr-bd { display:inline-block; margin-left:4px; font-style:normal; font-size:9px; font-weight:700; color:#2563eb; }
|
|
|
+ .qr-c.keep { background:#fff3bf !important; box-shadow:inset 0 0 0 2px #f59e0b; color:#111; font-weight:700; cursor:pointer; }
|
|
|
+ .qr-c.keep:hover { background:#ffe066 !important; }
|
|
|
+ .qr-bd { display:inline-block; margin-left:5px; font-style:normal; font-size:11px; font-weight:800; color:#fff; background:#f59e0b; padding:0 6px; border-radius:9px; }
|
|
|
.qr-pop { position:fixed; z-index:60; width:300px; background:#fff; border:1px solid #e2e2e2;
|
|
|
border-radius:11px; box-shadow:0 8px 30px rgba(0,0,0,.18); padding:13px 15px; font-size:12.5px; color:#333; }
|
|
|
.qr-pop .q { font-size:13.5px; font-weight:600; color:#1a1a1a; margin-bottom:2px; word-break:break-all; }
|
|
|
@@ -3892,8 +3892,9 @@
|
|
|
if (r.cached) { await qrLoadScores(r.sel); return; }
|
|
|
showTask("Query 评分 · 643 格", r.task_id, async () => { await qrLoadScores(r.sel); });
|
|
|
};
|
|
|
- async function qrRunSearch(query) {
|
|
|
- const body = { query, platforms: "xhs,gzh", max_count: 20 }; // 方向无关,标签自动路由
|
|
|
+ async function qrRunSearch(query, label) {
|
|
|
+ const body = { query, platforms: "xhs,gzh", max_count: 20 }; // 用改写词搜索,方向无关
|
|
|
+ if (label && label !== query) body.query_text = label; // query 列表存原始组合词
|
|
|
const r = await api("/api/run_search", { method: "POST", body: JSON.stringify(body) });
|
|
|
return r; // {task_id, query_id}
|
|
|
}
|
|
|
@@ -3919,7 +3920,7 @@
|
|
|
pop.style.top = Math.max(10, top) + "px";
|
|
|
$("#qr-pop-go").onclick = async () => {
|
|
|
qrClosePop();
|
|
|
- try { const rr = await qrRunSearch(query); showTask(`搜索 · ${rr.query_id} ${query}`, rr.task_id, null); }
|
|
|
+ try { const rr = await qrRunSearch(query, v.query); showTask(`搜索 · ${rr.query_id} ${query}`, rr.task_id, null); }
|
|
|
catch (err) { toast("搜索启动失败:" + (err.body?.error || err.status), "error"); }
|
|
|
};
|
|
|
$("#qr-pop-copy").onclick = () => { navigator.clipboard && navigator.clipboard.writeText(query); toast("已复制", "info", 1200); };
|
|
|
@@ -3968,7 +3969,7 @@
|
|
|
const items = [];
|
|
|
for (const [, v] of keeps) {
|
|
|
const q = v.rewrite || v.query;
|
|
|
- try { const r = await qrRunSearch(q); if (r.task_id) items.push({ query: q, query_id: r.query_id, task_id: r.task_id }); }
|
|
|
+ try { const r = await qrRunSearch(q, v.query); if (r.task_id) items.push({ query: q, query_id: r.query_id, task_id: r.task_id }); }
|
|
|
catch (e) { /* 单格失败不阻断 */ }
|
|
|
}
|
|
|
if (!items.length) return toast("全部发起失败", "error");
|