收口微信壳环境诊断日志
微信 web-view 环境读取失败日志改为固定标签 原生壳门禁拒绝微信环境诊断输出原生错误对象 同步宿主壳方案和共享决策记录
This commit is contained in:
@@ -2718,6 +2718,23 @@ function assertWechatAuthFailureBoundaries() {
|
||||
'utf8',
|
||||
);
|
||||
|
||||
for (const snippet of [
|
||||
'function logMiniProgramEnvReadFailure(_error)',
|
||||
"console.warn('[web-view] read mini program env failed')",
|
||||
'logMiniProgramEnvReadFailure(error)',
|
||||
]) {
|
||||
if (!webViewShellSource.includes(snippet)) {
|
||||
throw new Error(`wechat web-view env diagnostics must include ${snippet}`);
|
||||
}
|
||||
}
|
||||
if (
|
||||
webViewShellSource.includes(
|
||||
"console.warn('[web-view] read mini program env failed', error)",
|
||||
)
|
||||
) {
|
||||
throw new Error('wechat web-view env diagnostics must not log native error details');
|
||||
}
|
||||
|
||||
for (const snippet of [
|
||||
"WECHAT_LOGIN_UNAVAILABLE_MESSAGE = '微信登录失败,请稍后重试。'",
|
||||
"WECHAT_BIND_PHONE_UNAVAILABLE_MESSAGE = '绑定手机号失败,请稍后重试。'",
|
||||
|
||||
Reference in New Issue
Block a user