锁定微信手机号授权取消提示
微信手机号授权取消不再向页面透出原生错误细节 微信认证测试覆盖手机号授权取消稳定提示 native shell 总门禁反查手机号授权取消边界
This commit is contained in:
@@ -26,6 +26,7 @@ const PAY_RESULT_RECHECK_DELAY_MS = 120;
|
||||
const WEB_VIEW_SHARE_TITLE = '陶泥儿';
|
||||
const WECHAT_LOGIN_UNAVAILABLE_MESSAGE = '微信登录失败,请稍后重试。';
|
||||
const WECHAT_BIND_PHONE_UNAVAILABLE_MESSAGE = '绑定手机号失败,请稍后重试。';
|
||||
const WECHAT_BIND_PHONE_AUTH_REQUIRED_MESSAGE = '需要授权手机号后才能完成绑定。';
|
||||
|
||||
function showWebViewShareMenu() {
|
||||
if (typeof wx.showShareMenu !== 'function') {
|
||||
@@ -593,8 +594,9 @@ function createWechatWebViewPage() {
|
||||
|
||||
const detail = event.detail || {};
|
||||
if (!detail.code) {
|
||||
console.error('[web-view] bind phone auth declined', detail);
|
||||
this.setData({
|
||||
errorMessage: detail.errMsg || '需要授权手机号后才能完成绑定。',
|
||||
errorMessage: WECHAT_BIND_PHONE_AUTH_REQUIRED_MESSAGE,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user