From 539dd16c7ee4da6c4b9d4f953b91f1360bb4a7b4 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期五, 20 十月 2023 14:47:53 +0800
Subject: [PATCH] no message

---
 api/CommonUtil/Web/SendQwGroup.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/api/CommonUtil/Web/SendQwGroup.cs b/api/CommonUtil/Web/SendQwGroup.cs
index 588ef4e..35fbb21 100644
--- a/api/CommonUtil/Web/SendQwGroup.cs
+++ b/api/CommonUtil/Web/SendQwGroup.cs
@@ -16,11 +16,16 @@
         {
             try
             {
+                string webhook = ConfigUtil.GetValue<string>("qw_webhook");
+                if(webhook.IsNullOrEmpty())
+                {
+                    return;
+                }
                 string body = "{\"msgtype\": \"markdown\",\"markdown\":{\"content\":\"" + message + "\"}}";
-                string res = new WebUtil().DoPostWithJson("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1e5a8b47-b108-40a6-9a29-d629863bd066", body, null);
+                string res = new WebUtil().DoPostWithJson(webhook, body, null);
 
                 body = "{\"msgtype\": \"text\",\"text\":{\"content\":\"鎮ㄦ湁鏂扮殑娑堟伅闇�瑕佸鐞哱",\"mentioned_mobile_list\":[\"13382447768\",\"15862977578\",\"17315773080\"]}}";
-                res = new WebUtil().DoPostWithJson("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1e5a8b47-b108-40a6-9a29-d629863bd066", body, null);
+                res = new WebUtil().DoPostWithJson(webhook, body, null);
             }
             catch
             {

--
Gitblit v1.9.3