q-koa 11.9.1 → 11.9.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.
|
@@ -62,6 +62,16 @@ exports.sortOrder = {
|
|
|
62
62
|
sortOrder: 6,
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
exports.desc = {
|
|
66
|
+
type: Sequelize.STRING,
|
|
67
|
+
comment: '简介',
|
|
68
|
+
allowNull: false,
|
|
69
|
+
is_mock: true,
|
|
70
|
+
defaultValue: '',
|
|
71
|
+
sortOrder: 7,
|
|
72
|
+
mock: () => Random.ctitle(),
|
|
73
|
+
}
|
|
74
|
+
|
|
65
75
|
exports.key = {
|
|
66
76
|
type: Sequelize.STRING,
|
|
67
77
|
comment: 'model_key',
|
|
@@ -1369,11 +1369,11 @@ exports.refund_notify = async (ctx) => {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
1371
|
const order_id = out_refund_no.includes('_')
|
|
1372
|
-
? Number(out_refund_no.split('_')[0])
|
|
1373
|
-
: Number(out_refund_no)
|
|
1372
|
+
? Number(out_refund_no.split('_')[0].split('-')[1])
|
|
1373
|
+
: Number(out_refund_no.split('-')[1])
|
|
1374
1374
|
const type = out_refund_no.includes('_') ? out_refund_no.split('_')[1] : ''
|
|
1375
1375
|
const model = prefix ? `${prefix}_order` : 'order'
|
|
1376
|
-
console.log(`微信退款回调 ${
|
|
1376
|
+
console.log(`微信退款回调 ${refundResult}`)
|
|
1377
1377
|
if (app.service[model] && app.service[model].refund_notify) {
|
|
1378
1378
|
await app.service[model].refund_notify({
|
|
1379
1379
|
app,
|