From 91f29e05c9c80d76e47da580d68cb04c2fd38ecf Mon Sep 17 00:00:00 2001 From: deploy Date: Sat, 7 Nov 2026 05:01:16 +0000 Subject: [PATCH] =?UTF-8?q?=E6=82=84=E6=82=84=E8=AF=9D=E7=95=99=E8=A8=80?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E4=B8=8E=E9=A6=96=E9=A1=B5=E6=89=93=E9=80=9A?= =?UTF-8?q?=EF=BC=9Aopenid=20=E8=AF=BB=20hash+query+=E5=90=8C=E6=BA=90?= =?UTF-8?q?=E7=BC=93=E5=AD=98=EF=BC=8C=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=AE=97=E8=AE=BF=E5=AE=A2=EF=BC=9B=E5=B9=BF=E5=9C=BA/?= =?UTF-8?q?=E4=B8=93=E9=A2=98=E9=A1=B5=E4=B9=9F=E5=8A=A0=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=85=9C=E5=BA=95=20(v26110633)?= 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 | 4 ++-- index.html | 6 +++--- js/app.js | 2 +- js/wh-cm.js | 22 +++++++++++++++------- topic/_shared/tools.js | 2 +- 5 files changed, 22 insertions(+), 14 deletions(-) diff --git a/guangchang/index.html b/guangchang/index.html index 4d4499c..8627b17 100644 --- a/guangchang/index.html +++ b/guangchang/index.html @@ -1007,7 +1007,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} return m ? decodeURIComponent(m[1]).split('?')[0] : ''; } catch (e) { return ''; } } - var OPENID = (window.mbGate && window.mbGate.out) ? '' : param('openid'); /* 11-07 退出登录后按访客(不拉「我的评论」、不认头像) */ + var OPENID = (window.mbGate && window.mbGate.out) ? '' : (param('openid') || (function(){try{var c=JSON.parse(sessionStorage.getItem('mmbox.identity')||'null');return c&&c.openid&&(!c.at||Date.now()-c.at<432e5)?c.openid:'';}catch(e){return '';}})()); /* 11-07 URL 没带身份时用首页存的同源缓存(同 wx-auth.js identity) */ /* 11-07 退出登录后按访客(不拉「我的评论」、不认头像) */ var MYNAME = param('nickname') || '孕妈'; /* 授权回填的昵称在 hash 里;没有就叫「孕妈」,后面另挂「我」标 */ /* ---------- 头像:沿用首页 assets/img/mom/ 写实头像 ---------- */ @@ -1053,7 +1053,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} var CMD = null, CMERR = false; /* 头像编码:数字 = av/NNNN.webp(旧代码头像);'av:c012' = av/c012.webp(卡通/可爱卡通);'/…' = 站内绝对路径(内置头像库 /_bridge/avatars/);其余 = assets/img/mom/xxx.jpg */ var avP = function (a) { return typeof a === 'number' ? 'av/' + ('000' + a).slice(-4) + '.webp' : a.indexOf('av:') === 0 ? 'av/' + a.slice(3) + '.webp' : a.charAt(0) === '/' ? a : '../assets/img/mom/' + a + '.jpg'; }; - fetch('cm.json?v=26110632').then(function (r) { return r.json(); }).then(function (j) { + fetch('cm.json?v=26110633').then(function (r) { return r.json(); }).then(function (j) { CMD = j; if (openId && NBY[openId]) { renderComments(NBY[openId]); syncBar(NBY[openId]); } }).catch(function () { CMERR = true; if (openId && NBY[openId]) renderComments(NBY[openId]); }); function commentsOf(n) { diff --git a/index.html b/index.html index 191b3d3..d7979fe 100644 --- a/index.html +++ b/index.html @@ -9,10 +9,10 @@ 兜爸心选 · 孕育陪伴 - + - + @@ -2680,7 +2680,7 @@ html.night .rs-pan .rp-card{background:rgba(255,255,255,.06);border-color:rgba(2 - +