From 212f132c96aee4b31c682b8e59df16108a621163 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 4 Aug 2022 18:48:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=90=E8=A1=8C=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=8F=9C=E5=8D=95=E6=9C=AA=E8=AF=BB=E6=95=B0=E5=AD=97?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=B8=8D=E4=BC=9A=E6=B6=88=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/helpers/user_must_auth.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/web/helpers/user_must_auth.go b/internal/web/helpers/user_must_auth.go index 46ef8899..376a58e2 100644 --- a/internal/web/helpers/user_must_auth.go +++ b/internal/web/helpers/user_must_auth.go @@ -46,9 +46,8 @@ func init() { if err != nil { logs.Error(err) } else { - var countNodeLogs = countNodeLogsResp.Count - if countNodeLogs > 0 { - countUnreadNodeLogs = countNodeLogs + countUnreadNodeLogs = countNodeLogsResp.Count + if countUnreadNodeLogs > 0 { if countUnreadNodeLogs >= 100 { countUnreadNodeLogs = 99 }