q-koa 12.7.0 → 12.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1513,7 +1513,7 @@ exports.checkPayOnly = async (ctx, _data) => {
|
|
|
1513
1513
|
ctx.SUCCESS({ prefix, out_trade_no, ...payResult })
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
|
-
exports.checkRefund = async (ctx) => {
|
|
1516
|
+
exports.checkRefund = async (ctx, _data) => {
|
|
1517
1517
|
const { app, appName, controller } = getAppByCtx(ctx)
|
|
1518
1518
|
|
|
1519
1519
|
const {
|
|
@@ -1523,7 +1523,7 @@ exports.checkRefund = async (ctx) => {
|
|
|
1523
1523
|
config = 'weixin_mp',
|
|
1524
1524
|
pay_config = 'weixin_pay',
|
|
1525
1525
|
out_trade_no: _out_trade_no,
|
|
1526
|
-
} = ctx.request.body
|
|
1526
|
+
} = _data || ctx.request.body
|
|
1527
1527
|
|
|
1528
1528
|
const appConfig = getConfig(app)
|
|
1529
1529
|
const { appId, mchId, key, partner_key } = await appConfig.getObject(
|
|
@@ -1562,6 +1562,7 @@ exports.checkRefund = async (ctx) => {
|
|
|
1562
1562
|
})
|
|
1563
1563
|
|
|
1564
1564
|
ctx.SUCCESS(result)
|
|
1565
|
+
return result
|
|
1565
1566
|
}
|
|
1566
1567
|
|
|
1567
1568
|
exports.checkPayNew = async (ctx) => {
|