q-koa 10.5.2 → 10.5.3
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
|
@@ -366,12 +366,12 @@ class APP {
|
|
|
366
366
|
const db = connectDatabase(dbName)(this.config.db)
|
|
367
367
|
if (!is_dev) {
|
|
368
368
|
if (!dbFlag) {
|
|
369
|
-
console.log(chalk.green(
|
|
369
|
+
console.log(chalk.green(`${appName}检查数据库${dbName}`))
|
|
370
370
|
await db.authenticate()
|
|
371
371
|
dbFlag = true
|
|
372
372
|
}
|
|
373
373
|
} else {
|
|
374
|
-
console.log(chalk.green(
|
|
374
|
+
console.log(chalk.green(`${appName}检查数据库${dbName}`))
|
|
375
375
|
await db.authenticate()
|
|
376
376
|
}
|
|
377
377
|
const configPath = `${rootDirectory}/${APP_DIR}/${appName}/config.js`
|
|
@@ -1202,6 +1202,7 @@ exports.refund = async (ctx) => {
|
|
|
1202
1202
|
config = 'weixin_mp',
|
|
1203
1203
|
pay_config = 'weixin_pay',
|
|
1204
1204
|
is_new_pay = false,
|
|
1205
|
+
out_trade_no,
|
|
1205
1206
|
} = ctx.request.body
|
|
1206
1207
|
|
|
1207
1208
|
const fn = is_new_pay ? 'refund_new' : 'refund'
|
|
@@ -1214,6 +1215,7 @@ exports.refund = async (ctx) => {
|
|
|
1214
1215
|
price,
|
|
1215
1216
|
config,
|
|
1216
1217
|
pay_config,
|
|
1218
|
+
out_trade_no,
|
|
1217
1219
|
})
|
|
1218
1220
|
ctx.SUCCESS('ok')
|
|
1219
1221
|
}
|