ios手机在微信中打开一个页面,在这页面点击跳转到下载页,就提示the permission value is offine verifying,config失败?这里的encodeUri,无论我取第一次进入微信的url还是点击跳转下载的url错误都存在怎么修改呢?
$.ajax({
type: 'POST',
url: baseUrl,
async: false,
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify({
url: encodeUri
}),
success: function (res, textStatus) {
let data = res.dt;
if (textStatus == "success") {
wx.config({
debug: true,
appId: data.appId,
timestamp: data.timestamp,
nonceStr: data.noncestr,
signature: data.signature,
jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData']
});
console.log('xxxxxxxx');
wx.ready(function () {
share();
console.log('ppppppppppppp');
});
wx.error(function (res) {
console.log('error', res.errMsg);
// alert(res.errMsg);
});
}
}
})