config:fail,Error: invalid signature

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/csu_passer/article/details/84991821

与此同时出现的error:

getlocation:the permission value is offline verifying

 fetch(httpConfig.signature, {// signature:domain+'/wechat/jssdk/signature?url=***.com',
    method: 'GET'
  }).then(res => {
  callback(res);
  })

参与wx.config的url必须是动态生成的,如下:

httpConfig.signature+ window.location.href.split("#")[0]

猜你喜欢

转载自blog.csdn.net/csu_passer/article/details/84991821
今日推荐