From 8ef6f1c4ba50d978f3816d17a8fe9cf1ee28bcfb Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期二, 02 七月 2024 10:10:43 +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