q-koa 7.8.0 → 7.8.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.
|
@@ -956,10 +956,10 @@ exports.refund_notify = async (ctx) => {
|
|
|
956
956
|
const prefix =
|
|
957
957
|
out_trade_no.split('_').length === 4 ? out_trade_no.split('_')[1] : ''
|
|
958
958
|
|
|
959
|
-
const order_id =
|
|
960
|
-
? Number(
|
|
961
|
-
: Number(
|
|
962
|
-
const type =
|
|
959
|
+
const order_id = out_refund_no.includes('_')
|
|
960
|
+
? Number(out_refund_no.split('_')[0])
|
|
961
|
+
: Number(out_refund_no)
|
|
962
|
+
const type = out_refund_no.includes('_') ? out_refund_no.split('_')[1] : ''
|
|
963
963
|
const model = prefix ? `${prefix}_order` : 'order'
|
|
964
964
|
console.log(out_refund_no, '微信支付回调-----', type, model)
|
|
965
965
|
if (app.service[model] && app.service[model].refund_notify) {
|