q-koa 13.8.16 → 13.8.18

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.
@@ -52,7 +52,13 @@ exports.push = async ({ app, appName = '通知', url, message }) => {
52
52
  }
53
53
 
54
54
  const queryObject = {
55
- ...(is_dev ? {} : { url: encodeURIComponent(url) }),
55
+ ...(is_dev
56
+ ? {}
57
+ : {
58
+ url: encodeURIComponent(
59
+ url || `${app.appConfig.ip}:${app.appConfig.port}`
60
+ ),
61
+ }),
56
62
  ...(logo_image || logo_img
57
63
  ? {
58
64
  icon: encodeURIComponent(
@@ -1483,7 +1483,7 @@ exports.union_notify = async (ctx) => {
1483
1483
  refundid: trxid,
1484
1484
  })
1485
1485
  }
1486
- } else {
1486
+ } else if (trxcode !== 'VSP683') {
1487
1487
  app.service.log.push({
1488
1488
  app,
1489
1489
  message: JSON.stringify(notifyData),
@@ -203,7 +203,7 @@ class AllinPay {
203
203
  return result
204
204
  }
205
205
  }
206
- throw new Error(`AllinPay error: ${result.retmsg || 'Unknown error'}`)
206
+ throw new Error(result.retmsg || 'Unknown error')
207
207
  }
208
208
 
209
209
  async queryOrder(reqsn) {
@@ -230,7 +230,7 @@ class AllinPay {
230
230
  return result
231
231
  }
232
232
  }
233
- throw new Error(`AllinPay error: ${result.retmsg || 'Unknown error'}`)
233
+ throw new Error(result.retmsg || 'Unknown error')
234
234
  }
235
235
 
236
236
  async checkOrder(reqsn) {
@@ -260,7 +260,7 @@ class AllinPay {
260
260
  return result
261
261
  }
262
262
  }
263
- throw new Error(`AllinPay error: ${result.retmsg || 'Unknown error'}`)
263
+ throw new Error(result.retmsg || 'Unknown error')
264
264
  }
265
265
 
266
266
  async refundOrder(orderData) {
@@ -297,7 +297,7 @@ class AllinPay {
297
297
  return result
298
298
  }
299
299
  }
300
- throw new Error(`AllinPay error: ${result.retmsg || 'Unknown error'}`)
300
+ throw new Error(result.retmsg || 'Unknown error')
301
301
  }
302
302
 
303
303
  async cancelOrder(reqsn) {
@@ -324,7 +324,7 @@ class AllinPay {
324
324
  return result
325
325
  }
326
326
  }
327
- throw new Error(`AllinPay error: ${result.retmsg || 'Unknown error'}`)
327
+ throw new Error(result.retmsg || 'Unknown error')
328
328
  }
329
329
 
330
330
  async downloadBill({ date }) {
@@ -355,7 +355,7 @@ class AllinPay {
355
355
  return result
356
356
  }
357
357
  }
358
- throw new Error(`AllinPay error: ${result.retmsg || 'Unknown error'}`)
358
+ throw new Error(result.retmsg || 'Unknown error')
359
359
  }
360
360
 
361
361
  generateRandomStr(length = 32) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "13.8.16",
3
+ "version": "13.8.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {