这是后台返回的数据
mch_id:1519974821
package:AAQTnZoAAAABAAAAAADSjb5N_7w3sFmyoF4VXiAAAABcwQVtru-5k9MmEOZJ_Pv_Nq7Cw56dNKKN5EjZKnt5jbjnMD7YbHRlC5zwLEKdf_QlcadXGqCyzBlpbCbaf8Niq33iE6973TcJruUfi5e75K70IDD2tiCrSykaU_KKPJMDfebK4n-SDXmelxp82RuGPNwXOf_Dbku7sDz0RKrH7GjHDeP0ckX1pdxnKkj0WhvPPl8JX_6Fmn6Z
timestamp:1578458784
nonce_str:ZTZ6ZLV680HD2HV4RN0268RZV6086HNT
sign_type:HMAC-SHA256
sign:5BFBD8259A6072CF70EFDFC94B02AC09
console.log('mch_id:' + e.msg.mch_id)
console.log('package:' + e.msg.package)
console.log('timestamp:' + e.msg.timestamp)
console.log('nonce_str:' + e.msg.nonce_str)
console.log('sign_type:' + e.msg.sign_type)
console.log('sign:' + e.msg.sign)
if (wx.openBusinessView) {
wx.openBusinessView({
businessType: 'wxpayScoreUse',
extraData: {
mch_id: e.msg.mch_id,
package: e.msg.package,
timestamp: e.msg.timestamp,
nonce_str: e.msg.nonce_str,
sign_type: e.msg.sign_type,
sign: e.msg.sign
},
success() {
//dosomething
},
fail() {
//dosomething
},
complete() {
//dosomething
}
});
} else {
//引导用户升级微信版本
}
签名内容验证过.是正常的。我是用的MD5加密的方式
楼主这个问题解决了没?
同样的问题,请问解决了吗,2种加密方式都试过不行,用在线工具校验sign没问题。
https://developers.weixin.qq.com/community/develop/doc/000e422895c2f8e3b989c2eb351400?_at=1578464095609