This commit is contained in:
parent
fc0a1a04b0
commit
96999be84a
@ -81,12 +81,10 @@ func (c networkClient) ClientOfflineNotify() {
|
||||
}
|
||||
|
||||
// 已经离线,发送通知
|
||||
msg := fmt.Sprintf(`
|
||||
[离线通知] \n
|
||||
客户端名称 : %v \n
|
||||
客户端IP : %v \n
|
||||
最后在线时间 : %v
|
||||
`, clientName, ipAllocation, peer.LastHandshakeTime.Format("2006-01-02 15:04:05"))
|
||||
msg := fmt.Sprintf(`[离线通知]
|
||||
客户端名称 : %v
|
||||
客户端IP : %v
|
||||
最后在线时间 : %v`, clientName, ipAllocation, peer.LastHandshakeTime.Format("2006-01-02 15:04:05"))
|
||||
err := utils.WechatNotify(code).SendTextMessage(msg)
|
||||
if err != nil {
|
||||
log.Errorf("微信消息[%v]通知失败: %v", msg, err.Error())
|
||||
|
Loading…
Reference in New Issue
Block a user