From 3ae7b33dfca55b3e9a745aea8d8e8f3cea67ae87 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期二, 26 十一月 2024 16:44:01 +0800
Subject: [PATCH] 修复  要发送的信息为空时自动跳过,不进行发送

---
 DingDingMsg/DingDingMsg/MSG.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/DingDingMsg/DingDingMsg/MSG.cs b/DingDingMsg/DingDingMsg/MSG.cs
index a152b3f..6ffdcb2 100644
--- a/DingDingMsg/DingDingMsg/MSG.cs
+++ b/DingDingMsg/DingDingMsg/MSG.cs
@@ -51,7 +51,7 @@
                 string url = $"{_baseUrl}?access_token={accessToken}";
                 DateTimeOffset now = DateTimeOffset.Now;
                 string currentTime = now.ToString("yyyy-MM-dd HH:mm:ss");
-                string messageWithTimestamp = $"{currentTime}---{message}"; // 鍦ㄦ秷鎭唴瀹逛箣鍓嶆坊鍔犳椂闂存埑
+                string messageWithTimestamp = $"娑堟伅鏃堕棿:{currentTime} --- {message}"; // 鍦ㄦ秷鎭唴瀹逛箣鍓嶆坊鍔犳椂闂存埑
                 string messageJson = $"{{\"msgtype\": \"text\", \"text\": {{ \"content\": \"{messageWithTimestamp}\" }} }}";
                 string requestBody = $"agent_id={agentId}&userid_list={userIdList}&dept_id_list={deptIdList}&to_all_user={toAllUser}&msg={messageJson}";
 

--
Gitblit v1.9.1