🎨修改通知模板
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-12-05 14:53:43 +08:00
parent 19a025e888
commit fc0a1a04b0

View File

@ -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 {