From 89536a3b40beed6619d02306bcfc3c96b3c3ec9c Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期四, 24 四月 2025 10:40:47 +0800
Subject: [PATCH] 群消息通知开启
---
ruoyi-common/src/main/java/com/ruoyi/common/utils/WxCpUtils.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/WxCpUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/WxCpUtils.java
index a235e25..3a49995 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/WxCpUtils.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/WxCpUtils.java
@@ -100,12 +100,11 @@
* @throws Exception
*/
public static String informWebHook(String webHook, String content) {
-// JSONObject jsonObject = new JSONObject()
-// .accumulate("msgtype", "text")
-// .accumulate("text", new JSONObject()
-// .accumulate("content", content));
-// return HttpRequest.post(webHook).header("Content-Type", "application/json").body(jsonObject.toString()).execute().body();
- return null;
+ JSONObject jsonObject = new JSONObject()
+ .accumulate("msgtype", "text")
+ .accumulate("text", new JSONObject()
+ .accumulate("content", content));
+ return HttpRequest.post(webHook).header("Content-Type", "application/json").body(jsonObject.toString()).execute().body();
}
public static String getMd5(File file) {
--
Gitblit v1.9.3