From dfacb4e315a49f2c0399574ef094c87b96e7e248 Mon Sep 17 00:00:00 2001 From: yaowanxin <3588231647@qq.com> Date: 星期四, 24 七月 2025 09:30:51 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev_ywx_ztns' into dev_ywx_ztns --- ruoyi-common/src/main/java/com/ruoyi/common/utils/WxCpUtils.java | 13 ++++++------- 1 files changed, 6 insertions(+), 7 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..32266bf 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 @@ -93,19 +93,18 @@ } /** - * todo:鎺ㄩ�佺兢娑堟伅 + * 鎺ㄩ�佺兢娑堟伅 * * @param webHook 浼佷笟寰俊鏈哄櫒浜哄湴鍧� * @param content 鏁版嵁 * @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