出现-41003错误的原因可能如下:

1、encryptedData中有+号或者iv内空格导致解密失败,解决方法为小程序端给接口传递参数时使用encodeURIComponent()进行数据编码后再传,在接口中使用urldecode()解码;

2、code值的问题,在onShow中调用wx.login(),获取code值赋值给this.data.code

相关文章:

  • 2021-06-15
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-07-23
  • 2021-11-28
  • 2021-09-17
猜你喜欢
  • 2021-06-03
  • 2021-12-21
  • 2021-11-08
  • 2021-11-22
  • 2022-01-09
  • 2022-02-08
  • 2022-12-23
相关资源
相似解决方案