html52.com
我爱小程序-开发者交流社区

wx.authPrivateMessage有bug,返回的数据无法解密

框架类型 问题类型 终端类型 AppID 环境ID 基础库版本
小程序 Bug 微信iOS客户端 wxd7264f7b1ec9e679 cloud1-9g2l2gys3ecee365 2.10.4

https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.authPrivateMessage.html

wx.authPrivateMessage返回的数据无法解密,

const appId = 'wxd7264f7b1ec9e679'

const sessionKey = 'FnbzFuykaWwt9Av342H7+Q=='

"data": {

"encryptedData": "YMH6/wjpMA33LR4zxj2vKVGDZgaa67/oQ2IH9MPPEol76zk6+zcX1DLzBFQv/XxpWKimi9x5nabgPUOCQtY3L0323/wNh59DTlu4o/tdH69+ZbABHKTo7EoYHo9rOKCx",

"errMsg": "authPrivateMessage:ok",

"iv": "iVD+cruQQH6PrFLPX07eBA==",

"valid": true

},

wx.getShareInfo 返回的数据可以正常解密,但是没有 activityId

const appId = 'wxd7264f7b1ec9e679'

const sessionKey = 'FnbzFuykaWwt9Av342H7+Q=='

"data": {

"cloudID": "53_w7U7Pinrvm8FsKvxWSURr9xFM8NYTy7EZW_JK06tQlcYb1At-3cD5hvDMkA",

"encryptedData": "7ZgEsmDJjz/gADd/apDjjGA1Ci3uzbI0jDlPVjJEIGLDBNgUq+woin5VUWQFHPkNMDcs2uoDwATL+1eB+XED2O0kl/trlOn6+nK7sqAEtI5u1/i4gXyhm7r0zxYLn1AGwSpvyGVuzaFJzx1yxfAPHCXdEwPyuvPL1CAk9SBv9Fp9Cb3hI2zBCBMyX1Z4y+nj/78NaI+Zxn9eQmbJJL7yMEeoIBOyv/Fm/dGGIU7naXrIgrzUVh9M6UQilQHyP4RI",

"errMsg": "getShareInfo:ok",

"iv": "r0KC/5PD+fRuU/wd5cLhbQ=="

},

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付