q-koa 11.0.2 → 11.0.4

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.
@@ -13,7 +13,8 @@ exports.refund = async ({
13
13
  total_fee,
14
14
  refund_fee,
15
15
  price,
16
- type = 'MP-WEIXIN',
16
+ pay_type = 'MP-WEIXIN',
17
+ type = '',
17
18
  config = 'weixin_mp',
18
19
  pay_config = 'weixin_pay',
19
20
  out_trade_no: _out_trade_no,
@@ -42,8 +43,8 @@ exports.refund = async ({
42
43
  const out_trade_no = _out_trade_no
43
44
  ? _out_trade_no
44
45
  : prefix
45
- ? `${key}_${prefix}-${id}_${type}`
46
- : `${key}_${id}_${type}`
46
+ ? `${key}_${prefix}-${id}_${pay_type}`
47
+ : `${key}_${id}_${pay_type}`
47
48
  const orderDetail = await app.model[orderModel].findOne({
48
49
  where: {
49
50
  id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "11.0.2",
3
+ "version": "11.0.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {