wx.showLoading({
title: '加载中',
})
log.info("uni_order_num:", that.data.uni_order_num, "total_fee", that.data.selectedInfo.selectedFee)
try {
//console.log("uni_order_num:", that.data.uni_order_num, "total_fee", that.data.selectedInfo.selectedFee)
wx.cloud.callFunction({
name: "payment",
data: {
command: "pay",
out_trade_no: that.data.uni_order_num,
body: '充电付款',
total_fee: that.data.selectedInfo.selectedFee
},
success(res) {
console.log("云函数payment提交成功:", res.result)
wx.hideLoading()
that.pay(res.result)
},
fail(res) {
console.log("云函数payment提交失败:", res)
wx.hideLoading()
}
})
}
catch(error) {
wx.hideLoading()
console.log(error)
log.warn(error)
}
},
上述这段代码调用后, log.info("uni_order_num:", that.data.uni_order_num, "total_fee", that.data.selectedInfo.selectedFee)这行打印能在公众平台上看到,但是没有后面的云函数的调用信息,从云平台上看不到,这个问题是偶现的,不是每个手机都会出现,但出现问题的手机是必现的,有哪位大神能知道是为什么吗?
你这个代码,看的我眼睛都花了。
你想让别人认真看你的问题,就站在解决问题人角度看看