q-koa 9.6.0 → 9.6.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.
@@ -1158,12 +1158,12 @@ exports.refund_notify = async (ctx) => {
1158
1158
  const pay_config = ctx.params.sub || 'weixin_pay'
1159
1159
 
1160
1160
  const appConfig = getConfig(app)
1161
- const { key } = await appConfig.getObject(pay_config)
1161
+ const { key, partner_key } = await appConfig.getObject(pay_config)
1162
1162
 
1163
1163
  const { req_info } = result.xml
1164
1164
  const refundResult = await getRefundResultJson({
1165
1165
  req_info,
1166
- app_key: key,
1166
+ app_key: key.length > 10 ? key : partner_key,
1167
1167
  })
1168
1168
 
1169
1169
  const { out_refund_no, out_trade_no, total_fee, refund_fee } = refundResult
@@ -1271,6 +1271,7 @@ exports.checkPay = async (ctx) => {
1271
1271
  order_id: id,
1272
1272
  order_price,
1273
1273
  transactionid: payResult.transaction_id,
1274
+ out_trade_no: payResult.out_trade_no,
1274
1275
  })
1275
1276
  }
1276
1277
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "9.6.0",
3
+ "version": "9.6.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {