From 68a075ea14725faf988422de5daf36db0621638a Mon Sep 17 00:00:00 2001 From: himawari <1156544355@qq.com> Date: Wed, 22 May 2024 12:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/chatcount/model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/chatcount/model.go b/plugin/chatcount/model.go index 8039df6de1..7c7f46d5b3 100644 --- a/plugin/chatcount/model.go +++ b/plugin/chatcount/model.go @@ -94,10 +94,10 @@ func (ctdb *chattimedb) updateChatTime(gid, uid int64) (todayTime int64, remindF }) todayTime = (st.TodayTime + userChatTime) / 60 remindFlag = getLevel(int(st.TodayTime+userChatTime)/60) > getLevel(int(st.TodayTime/60)) - }else{ + } else { db.Model(&ChatTime{}).Where("group_id = ? and user_id = ?", gid, uid).Update( map[string]any{ - "last_time": now, + "last_time": now, }) }