q-koa 9.4.0 → 9.4.2

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.
@@ -1,6 +1,5 @@
1
1
  const { lodash, getAppByCtx, getConfig } = require('q-koa')
2
2
 
3
- const path = require('path')
4
3
  const axios = require('axios')
5
4
  const OAuth = require('wechat-oauth')
6
5
  const WXPay = require('weixin-pay-fork')
@@ -12,7 +11,6 @@ const WXBizDataCrypt = require('../../services/weixinCrypt')
12
11
  const weixinArticle = require('../../services/weixinArticle')
13
12
  const fxp = require('fast-xml-parser')
14
13
  const crypto = require('crypto')
15
- const OSS = require('ali-oss')
16
14
 
17
15
  const check = ({ timestamp, nonce, signature, token }) => {
18
16
  const tmp = [token, timestamp, nonce].sort().join('')
@@ -1005,6 +1003,7 @@ exports.notify = async (ctx) => {
1005
1003
  order: model,
1006
1004
  order_price,
1007
1005
  transactionid,
1006
+ out_trade_no: result.xml.out_trade_no,
1008
1007
  })
1009
1008
  }
1010
1009
 
@@ -32,7 +32,7 @@ exports.refund = async ({
32
32
  pfx: await fsPromise.readFile(
33
33
  path.resolve(
34
34
  __dirname,
35
- `${process.cwd()}/app/${appName}/plugins/weixin/${pay_config}/apiclient_cert.p12`
35
+ `${process.cwd()}/app/${appName}/plugins/weixin/${key}/apiclient_cert.p12`
36
36
  )
37
37
  ), // 微信商户平台证书
38
38
  })
@@ -166,7 +166,7 @@ exports.cash = async ({
166
166
  pfx: await fsPromise.readFile(
167
167
  path.resolve(
168
168
  __dirname,
169
- `${process.cwd()}/app/${appName}/plugins/weixin/${pay_config}/apiclient_cert.p12`
169
+ `${process.cwd()}/app/${appName}/plugins/weixin/${key}/apiclient_cert.p12`
170
170
  )
171
171
  ), // 微信商户平台证书
172
172
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "9.4.0",
3
+ "version": "9.4.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {