From b69a02e5708a4931780c971e616c267f85dfac5b Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Wed, 30 Sep 2026 09:16:30 +0000 Subject: [PATCH] =?UTF-8?q?chore(=E9=A6=96=E9=A1=B5):=20=E5=85=88=E5=85=B3?= =?UTF-8?q?=E6=8E=89=E9=A1=B6=E9=83=A8=E3=80=8C=E6=9C=AA=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=88=B0=E5=BE=AE=E4=BF=A1=E8=BA=AB=E4=BB=BD=E3=80=8D=E9=BB=84?= =?UTF-8?q?=E8=89=B2=E6=8F=90=E7=A4=BA=E6=9D=A1=20(v26093005)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 产品要求先不展示。只在 showIdNotice() 入口加开关 ID_NOTICE_ENABLED=false, 判定逻辑、标记、重试按钮都保留;没身份时改为 console.warn,排查不受影响。 恢复展示:把开关改回 true。 Co-Authored-By: Claude Opus 5.5 --- index.html | 2 +- js/app.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c03053c..a54f4b2 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ 兜爸心选 · 孕育陪伴 - + diff --git a/js/app.js b/js/app.js index da9d1d3..55ae15b 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26093004'; + var VER = '26093005'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -2789,7 +2789,12 @@ applyRemoteProfile 会再跑一次,这里要 hide。 ⚠️ 不做自动轮询/自动 reload:宿主只在它自己重设 web-view src 或 onShow 时注入身份, 页面自己 reload 同一 URL 并不会让身份出现(反而可能循环),所以只留手动重试。 */ + /* 2026-09-30 产品要求:顶部这条黄色提示条先不给用户看。 + 只关展示,判定逻辑、标记、重试都原样留着;恢复时删掉下面这个开关即可。 + 没身份时仍在控制台打一条,排查不受影响。 */ + const ID_NOTICE_ENABLED = false; function showIdNotice(reason) { + if (!ID_NOTICE_ENABLED) { try { console.warn('[mama-box] 未获取到微信身份(提示条已关闭)', reason || ''); } catch (e) {} return; } const el = $('#idNotice'), txt = $('#idNoticeTxt'); if (!el) return; if (txt) {