exports.main = async (event, context) => {
const wxContext = cloud.getWXContext()
let ip = wxContext.CLIENTIP
let {
outTradeNo,
totalFee,
body
} = event
const res = await cloud.cloudPay.unifiedOrder({
"body": body,
"outTradeNo": outTradeNo,
"spbillCreateIp": ip,
"subMchId": subMchId,
"totalFee": totalFee,
"envId": "XXXX", //cloud.DYNAMIC_CURRENT_ENV
"functionName": "pay_cb"
})
手机微信版本 8.0.2
该如何解决