微信分享失败the permission value is offine verifying?

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);
                        });
                    }
                }
            })
阅读 1.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进