1
- 发布:2022-08-07 10:27
- 更新:2022-08-07 10:27
- 阅读:644
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: w11
HBuilderX类型: 正式
HBuilderX版本号: 3.5.4
手机系统: Android
手机系统版本号: Android 12
手机厂商: 华为
手机机型: 11
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
微信订单不存在,需要返回结果
微信订单不存在,需要返回结果
实际结果:
微信订单不存在,直接云函数报错
微信订单不存在,直接云函数报错
bug描述:
uni-pay版本是
"name": "uni-pay",
"version": "1.0.29",
云函数代码
let ccc = await uniCloud.callFunction({
name: 'pay-query-cha',
data: {
outTradeNo:'574344233885526325221',
uid: '7826154',
provider: 'wxpay',
shangpu: '21719559199',
}
})
console.log(ccc)
当微信支付订单号不存在时,打印不出任何数据
云函数直接报错
Error: [pay-query-cha]: :ORDERNOTEXIST 订单不存在 __ERROR
10:20:31.376 [云函数:pay-query-cha] 运行日志:
10:20:31.408 ORDERNOTEXIST 订单不存在
10:20:31.440 Error: ORDERNOTEXIST 订单不存在
10:20:31.473 at _parse (/tmp/function/@common_modules/uni-pay/index.js:1:22599)
10:20:31.505 at _requestWxpay (/tmp/function/@common_modules/uni-pay/index.js:1:23881)
10:20:31.538 at processTicksAndRejections (internal/process/task_queues.js:97:5)
10:20:31.569 at orderQuery (/tmp/function/@common_modules/uni-pay/index.js:1:25677)
10:20:31.601 at (/tmp/function/@common_modules/uni-pay/index.js:1:30547)
10:20:31.633 at exports.main (/tmp/function/__index.js:62:20)
10:20:31.665 at y (/tmp/function/index.js:1:8473)
10:20:31.697 at runUserFunction (/code/index.js:118:207825)
10:20:31.729 at (/code/index.js:118:203235)
支付宝订单不存在返回的结果console.log(ccc)
"queryResult": {
"code": "40004",
"msg": "Business Failed",
"subCode": "ACQ.TRADE_NOT_EXIST",
"subMsg": "交易不存在",
"invoiceAmount": 0,
"outTradeNo": "21719559199574344233885526325221",
"pointAmount": 0,
"receiptAmount": 0,
"cashFee": 0,
"fundBillList": [],
"tradeSettleDetailList": []
}