From 27a90e70749f5a569eda2c225d7b319b3c2d77a5 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期一, 15 十二月 2025 11:41:03 +0800
Subject: [PATCH] 订单拆分生成系统编号逻辑调整

---
 ruoyi-common/src/main/java/com/ruoyi/common/utils/WxCpUtils.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 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 32266bf..9651311 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,9 +100,21 @@
 	 * @throws Exception
 	 */
 	public static String informWebHook(String webHook, String content) {
+		return informWebHook(webHook, content,"text");
+	}
+
+	/**
+	 * 鎺ㄩ�佺兢娑堟伅
+	 *
+	 * @param webHook 浼佷笟寰俊鏈哄櫒浜哄湴鍧�
+	 * @param content 鏁版嵁
+	 * @param msgType 娑堟伅绫诲瀷
+	 * @throws Exception
+	 */
+	public static String informWebHook(String webHook, String content,String msgType) {
 		JSONObject jsonObject = new JSONObject()
-				.accumulate("msgtype", "text")
-				.accumulate("text", new JSONObject()
+				.accumulate("msgtype", msgType)
+				.accumulate(msgType, new JSONObject()
 						.accumulate("content", content));
 		return HttpRequest.post(webHook).header("Content-Type", "application/json").body(jsonObject.toString()).execute().body();
 	}

--
Gitblit v1.9.3