q-koa 12.6.7 → 12.7.1
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
|
@@ -1139,6 +1139,15 @@ class APP {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
1142
|
+
if (
|
|
1143
|
+
item.hasOwnProperty('$lte') &&
|
|
1144
|
+
typeof item.$lte === 'string'
|
|
1145
|
+
) {
|
|
1146
|
+
return {
|
|
1147
|
+
$lte: Sequelize.literal(item.$lte),
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1142
1151
|
if (
|
|
1143
1152
|
item.hasOwnProperty('$gt') &&
|
|
1144
1153
|
typeof item.$gt === 'string'
|
|
@@ -1147,6 +1156,15 @@ class APP {
|
|
|
1147
1156
|
$gt: Sequelize.literal(item.$gt),
|
|
1148
1157
|
}
|
|
1149
1158
|
}
|
|
1159
|
+
|
|
1160
|
+
if (
|
|
1161
|
+
item.hasOwnProperty('$gte') &&
|
|
1162
|
+
typeof item.$gte === 'string'
|
|
1163
|
+
) {
|
|
1164
|
+
return {
|
|
1165
|
+
$gte: Sequelize.literal(item.$gte),
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1150
1168
|
return item
|
|
1151
1169
|
} else {
|
|
1152
1170
|
return item
|
|
@@ -1513,7 +1513,7 @@ exports.checkPayOnly = async (ctx, _data) => {
|
|
|
1513
1513
|
ctx.SUCCESS({ prefix, out_trade_no, ...payResult })
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
|
-
exports.checkRefund = async (ctx) => {
|
|
1516
|
+
exports.checkRefund = async (ctx, _data) => {
|
|
1517
1517
|
const { app, appName, controller } = getAppByCtx(ctx)
|
|
1518
1518
|
|
|
1519
1519
|
const {
|
|
@@ -1523,7 +1523,7 @@ exports.checkRefund = async (ctx) => {
|
|
|
1523
1523
|
config = 'weixin_mp',
|
|
1524
1524
|
pay_config = 'weixin_pay',
|
|
1525
1525
|
out_trade_no: _out_trade_no,
|
|
1526
|
-
} = ctx.request.body
|
|
1526
|
+
} = _data || ctx.request.body
|
|
1527
1527
|
|
|
1528
1528
|
const appConfig = getConfig(app)
|
|
1529
1529
|
const { appId, mchId, key, partner_key } = await appConfig.getObject(
|
|
@@ -1562,6 +1562,7 @@ exports.checkRefund = async (ctx) => {
|
|
|
1562
1562
|
})
|
|
1563
1563
|
|
|
1564
1564
|
ctx.SUCCESS(result)
|
|
1565
|
+
return result
|
|
1565
1566
|
}
|
|
1566
1567
|
|
|
1567
1568
|
exports.checkPayNew = async (ctx) => {
|