From 683e7b2cc374c8b59100096b23e2411dea88a428 Mon Sep 17 00:00:00 2001 From: coward Date: Thu, 5 Dec 2024 11:06:21 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron/task/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cron/task/client.go b/cron/task/client.go index 472ab85..4864641 100644 --- a/cron/task/client.go +++ b/cron/task/client.go @@ -49,13 +49,14 @@ func (c networkClient) ClientOfflineNotify() error { // 查询一下通知配置 code, err := service.Setting().GetByCode("WECHAT_NOTIFY") if err != nil { + log.Errorf("获取微信通知配置失败: %v", err.Error()) return err } for _, peer := range connectedPeers { var clientName string if !slices.ContainsFunc(clients, func(cli model.Client) bool { - isExist := peer.PublicKey.String() == jsoniter.Get([]byte(cli.Keys), "PublicKey").ToString() + isExist := peer.PublicKey.String() == jsoniter.Get([]byte(cli.Keys), "publicKey").ToString() if isExist { clientName = cli.Name }