q-koa 12.9.0 → 12.9.2

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.
@@ -1203,6 +1203,7 @@ exports.notify = async (ctx) => {
1203
1203
  // console.log(order_id, '微信支付回调-----', model, order_price, transactionid)
1204
1204
  if (app.service[model] && app.service[model].notify) {
1205
1205
  await app.service[model].notify({
1206
+ ctx,
1206
1207
  app,
1207
1208
  order_id,
1208
1209
  order: model,
@@ -496,7 +496,7 @@ exports.handleUserMessage = async ({ app, result }) => {
496
496
  }
497
497
  }
498
498
 
499
- exports.funds_order_pay = async ({ app, result }) => {
499
+ exports.funds_order_pay = async ({ ctx, app, result }) => {
500
500
  const appConfig = getConfig(app)
501
501
 
502
502
  if (result.ToUserName) {
@@ -534,6 +534,7 @@ exports.funds_order_pay = async ({ app, result }) => {
534
534
 
535
535
  if (app.service[model] && app.service[model].notify) {
536
536
  await app.service[model].notify({
537
+ ctx,
537
538
  app,
538
539
  order_id,
539
540
  order: model,
@@ -545,7 +546,7 @@ exports.funds_order_pay = async ({ app, result }) => {
545
546
  }
546
547
  }
547
548
 
548
- exports.funds_order_refund = async ({ app, result }) => {
549
+ exports.funds_order_refund = async ({ ctx, app, result }) => {
549
550
  const appConfig = getConfig(app)
550
551
 
551
552
  if (result.ToUserName) {
@@ -590,6 +591,7 @@ exports.funds_order_refund = async ({ app, result }) => {
590
591
  throw new Error('还没退成功')
591
592
  if (app.service[model] && app.service[model].refund_notify) {
592
593
  await app.service[model].refund_notify({
594
+ ctx,
593
595
  app,
594
596
  order_id,
595
597
  order: model,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.9.0",
3
+ "version": "12.9.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {