chore(首页): 先关掉顶部「未获取到微信身份」黄色提示条 (v26093005)
产品要求先不展示。只在 showIdNotice() 入口加开关 ID_NOTICE_ENABLED=false, 判定逻辑、标记、重试按钮都保留;没身份时改为 console.warn,排查不受影响。 恢复展示:把开关改回 true。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user