From 580f5144a73389515fa38b56a2b59d5976619690 Mon Sep 17 00:00:00 2001 From: deploy Date: Sat, 7 Nov 2026 03:23:48 +0000 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA/=E5=9B=9E=E5=A4=8D=E5=8F=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AE=A1=E6=A0=B8=E9=80=9A=E8=BF=87=E7=9A=84?= =?UTF-8?q?=EF=BC=88=E6=98=9F=E7=A9=BA=E7=95=99=E8=A8=80=E3=80=81=E5=B9=BF?= =?UTF-8?q?=E5=9C=BA=E3=80=81=E4=B8=93=E9=A2=98=E9=A1=B5=EF=BC=8C=E8=87=AA?= =?UTF-8?q?=E5=B7=B1=E4=B9=9F=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E4=B8=AD=EF=BC=89=EF=BC=9B=E6=98=9F=E7=A9=BA=E4=BA=AE=E6=98=9F?= =?UTF-8?q?=E5=9D=87=E5=8C=80=E9=93=BA=E6=BB=A1=E6=95=B4=E7=89=87=E5=A4=9C?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- guangchang/index.html | 7 ++++--- index.html | 4 ++-- js/app.js | 26 +++++++++++++++----------- js/wh-cm.js | 14 ++++++++------ topic/_shared/tools.js | 6 +++--- 5 files changed, 32 insertions(+), 25 deletions(-) diff --git a/guangchang/index.html b/guangchang/index.html index a320aa4..8b3c8fc 100644 --- a/guangchang/index.html +++ b/guangchang/index.html @@ -1079,9 +1079,10 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} /* 11-03 用户:评论要后台审核通过才对外公开。服务器 /plaza/comments:list = 别人已通过的;mine = 我在这篇下发的(含审核中 / 未通过)。 ME.cm 里没有 id 的是 11-03 以前只存本机的旧评论,从没公开过,照旧只给自己看(标「仅自己可见」)。 */ var RC = {}; + /* 11-07 用户:评论、回复一定要审核通过才显示,自己也不显示「审核中」—— 只留已通过的;本机旧评论(从没审过)也不再显示 */ var myCm = function (id) { - var old = (ME.cm[id] || []).filter(function (c) { return !c.id; }).map(function (c) { return { t: c.t, ts: c.ts, s: c.s, st: 'local' }; }); - var srv = RC[id] ? RC[id].mine.map(function (c) { return { id: c.id, t: c.text, ts: c.at, s: c.stage, st: c.status, why: c.reason, parent: c.parent, to: c.parentName, img: c.images }; }) : []; + var old = []; + var srv = RC[id] ? RC[id].mine.filter(function (c) { return c.status === 'approved'; }).map(function (c) { return { id: c.id, t: c.text, ts: c.at, s: c.stage, st: c.status, why: c.reason, parent: c.parent, to: c.parentName, img: c.images }; }) : []; return old.concat(srv.reverse()); }; var realCm = function (id) { return RC[id] ? RC[id].list : []; }; @@ -2216,7 +2217,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} cin.value = ''; if (CP) CP.clear(); $('#csend').disabled = true; cin.blur(); $('#bar').classList.remove('typing'); if (openId === n.id) { renderComments(n); syncBar(n); } if (!wasReply) { var w = $('#cmw'); if (w) $('#dsc').scrollTo({ top: w.offsetTop - 50, behavior: 'smooth' }); } - toast(wasReply ? '回复已提交,审核通过后大家就能看到' : '已提交,审核通过后大家就能看到'); + toast(wasReply ? '回复已提交,审核通过后才会显示' : '已提交,审核通过后才会显示'); }).catch(function () { send.busy = false; $('#csend').disabled = !canSend(); toast('网络不太好,稍后再试'); }); } diff --git a/index.html b/index.html index 066f0db..f660a12 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ 兜爸心选 · 孕育陪伴 - + @@ -2680,7 +2680,7 @@ html.night .rs-pan .rp-card{background:rgba(255,255,255,.06);border-color:rgba(2 - +