q-koa 7.9.7 → 7.9.8
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.
|
@@ -1008,13 +1008,14 @@ exports.sendMessage = async (ctx) => {
|
|
|
1008
1008
|
exports.refund = async (ctx) => {
|
|
1009
1009
|
const { app, appName } = getAppByCtx(ctx)
|
|
1010
1010
|
const appConfig = getConfig(app)
|
|
1011
|
-
const { id, prefix = '', price } = ctx.request.body
|
|
1011
|
+
const { id, prefix = '', price, pay_config = 'weixin_pay' } = ctx.request.body
|
|
1012
1012
|
|
|
1013
1013
|
await app.service.weixin.refund({
|
|
1014
1014
|
ctx,
|
|
1015
1015
|
id,
|
|
1016
|
-
prefix
|
|
1016
|
+
prefix,
|
|
1017
1017
|
price,
|
|
1018
|
+
pay_config,
|
|
1018
1019
|
})
|
|
1019
1020
|
ctx.SUCCESS('ok')
|
|
1020
1021
|
}
|