diff --git a/src/api/monitor/server.js b/src/api/monitor/server.js index 9f4e3dd..2bdf24e 100644 --- a/src/api/monitor/server.js +++ b/src/api/monitor/server.js @@ -14,4 +14,20 @@ export function getHealth() { url: '/monitor/server/health', method: 'get' }) +} + +// 手动测试微信推送(会真实下发一条消息) +export function triggerWxSendHealthTest() { + return request({ + url: '/monitor/server/health/wx-send-test', + method: 'post' + }) +} + +// 手动测试企微闲鱼通知(经 wxSend goofish-active-push) +export function triggerGoofishNotifyTest() { + return request({ + url: '/monitor/server/health/goofish-notify-test', + method: 'post' + }) } \ No newline at end of file diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue index f9b0f0b..a40d5ac 100644 --- a/src/views/monitor/server/index.vue +++ b/src/views/monitor/server/index.vue @@ -214,8 +214,17 @@ -
+
微信推送服务健康度 + + {{ wxSendTesting ? '检测中...' : '测试' }} +
@@ -224,7 +233,7 @@ @@ -252,6 +261,55 @@ + + +
+ 企微闲鱼通知(wxSend) + + {{ goofishTesting ? '检测中...' : '测试' }} + +
+
+
服务状态
- + {{ health.wxSend && health.wxSend.status ? health.wxSend.status : '未知' }}
@@ -241,7 +250,7 @@
状态信息
-
+
{{ health.wxSend && health.wxSend.message ? health.wxSend.message : '-' }}
+ + + + + + + + + + + + + + +
服务状态
+
+ + {{ health.goofishNotify && health.goofishNotify.status ? health.goofishNotify.status : '未知' }} + +
+
推送接口
+
+ {{ health.goofishNotify && health.goofishNotify.serviceUrl ? health.goofishNotify.serviceUrl : '-' }} +
+
状态信息
+
+ {{ health.goofishNotify && health.goofishNotify.message ? health.goofishNotify.message : '-' }} +
+
+
+ + + @@ -306,7 +364,7 @@