wx.cloud.callFunction({
name: 'buy_pay',
data: {
body:goodsnames,
outTradeNo:outTradeNo, //时间戳是10位,这里要求30位
totalFee:totalPrice*100
},success: res =>{
console.log("调用函数成功")
const payment = res.result.payment
wx.requestPayment({
...payment,
success (res) {}
调用函数成功打印,但是4个产品交易失败