已解决
时间戳的数据类型 不是字符串导致。
文档链接
https://pay.weixin.qq.com/doc/v2/merchant/4011937428
- 报文参数(app:wx7e14a3ccd9698e78)
- nonceStr: "j3f1idoh2k"
- package: "sendid%3Df2d094ce05493838ad5a726e8906168a52e077fb92946058b5ef7ac7b687a832%26ver%3D8%26sign%3Dca444a1e053398dc9b70822f403289e4158c46c0436fc84f6d4fa9559c2cb30baa39c53e071df46d1da7d1b58e79742a10f84a124aad0266b4d874b72c42a172%26mchid%3D82094208%26spid%3D1494597342"
- paySign: "6c8757b97ed9a18a26e898a0b9d2bbdb"
- signType: "MD5"
- timeStamp: 1743665009
同样的代码在Android手机上可以领取
iOS仅会报 sendBizRedPacket:fail 请求不成功
看不到任何有效提示信息
场景值1047
基础库版本3.2.5
wx.sendBizRedPacket ({
"nonceStr":res.data.nonceStr,"package":res.data.package,"paySign":res.data.paySign,"signType":"MD5","timeStamp":res.data.timeStamp,
"success":function(res){
that.setData(res)
console.log(res)
},
"fail":function(res){
that.setData({res:res.errMsg})
console.log(res)
if(res.errMsg.indexOf("cancel") == -1){
wx.showToast({
title: '今日红包已派完',
})
} else {
wx.showToast({
title: '用户取消',
})
}
},
"complete":function(res){}
}
timeStamp: 1743665009这里实际传的不是字符串类型吗?
场景值仅支持1011,1025,1047,1124