q-koa 12.5.3 → 12.5.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.
package/core/app.js CHANGED
@@ -290,6 +290,12 @@ class APP {
290
290
  console.log(
291
291
  `first app is http://localhost:3001/${appName}/setting/findOne`
292
292
  )
293
+ } else {
294
+ this.app[appName].service.log.push({
295
+ app: this.app[appName],
296
+ url: `http://${this.config.ip}:${this.port}/setting/findOne`,
297
+ message: `${this.config.ip}:${this.port}项目启动成功`,
298
+ })
293
299
  }
294
300
 
295
301
  const version = require('q-koa/package.json').version
@@ -1474,7 +1474,7 @@ exports.checkPay = async (ctx, _data) => {
1474
1474
  return { prefix, out_trade_no, ...payResult }
1475
1475
  }
1476
1476
 
1477
- exports.checkPayOnly = async (ctx) => {
1477
+ exports.checkPayOnly = async (ctx, _data) => {
1478
1478
  const { app, appName, controller } = getAppByCtx(ctx)
1479
1479
 
1480
1480
  const {
@@ -1484,7 +1484,7 @@ exports.checkPayOnly = async (ctx) => {
1484
1484
  pay_config = 'weixin_pay',
1485
1485
  type = 'MP-WEIXIN',
1486
1486
  out_trade_no: _out_trade_no,
1487
- } = ctx.request.body
1487
+ } = _data || ctx.request.body
1488
1488
 
1489
1489
  const appConfig = getConfig(app)
1490
1490
  const app_id = (await appConfig.getObject(config)).app_id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.5.3",
3
+ "version": "12.5.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {