q-koa 12.5.3 → 12.5.5
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,13 @@ 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 &&
|
|
295
|
+
this.app[appName].service.log.push({
|
|
296
|
+
app: this.app[appName],
|
|
297
|
+
url: `http://${this.config.ip}:${this.port}/setting/findOne`,
|
|
298
|
+
message: `${this.config.ip}:${this.port}项目启动成功`,
|
|
299
|
+
})
|
|
293
300
|
}
|
|
294
301
|
|
|
295
302
|
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
|