From fc0a1a04b07af1607aefea6748095c153b43d464 Mon Sep 17 00:00:00 2001 From: coward Date: Thu, 5 Dec 2024 14:53:43 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E4=BF=AE=E6=94=B9=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron/task/client.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cron/task/client.go b/cron/task/client.go index fa7baa7..f70a863 100644 --- a/cron/task/client.go +++ b/cron/task/client.go @@ -81,7 +81,11 @@ func (c networkClient) ClientOfflineNotify() { } // 已经离线,发送通知 - msg := fmt.Sprintf(`[离线通知]\n客户端名称 : %v\n客户端IP : %v\n最后在线时间 : %v + msg := fmt.Sprintf(` +[离线通知] \n +客户端名称 : %v \n +客户端IP : %v \n +最后在线时间 : %v `, clientName, ipAllocation, peer.LastHandshakeTime.Format("2006-01-02 15:04:05")) err := utils.WechatNotify(code).SendTextMessage(msg) if err != nil {