q-koa 13.8.17 → 13.8.19
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
|
@@ -491,10 +491,13 @@ class APP {
|
|
|
491
491
|
|
|
492
492
|
subscriber = client.duplicate()
|
|
493
493
|
await subscriber.connect()
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
|
|
495
|
+
if (!is_dev) {
|
|
496
|
+
push({
|
|
497
|
+
appName,
|
|
498
|
+
message: `${appName}连接redis成功,${this.config.ip}:${this.port}`,
|
|
499
|
+
})
|
|
500
|
+
}
|
|
498
501
|
} catch (e) {
|
|
499
502
|
client = null
|
|
500
503
|
|
|
@@ -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(
|