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
|
|
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(
|
|
@@ -203,7 +203,7 @@ class AllinPay {
|
|
|
203
203
|
return result
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
throw new 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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
358
|
+
throw new Error(result.retmsg || 'Unknown error')
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
generateRandomStr(length = 32) {
|