Skip to content

Commit e98c161

Browse files
committed
🐛 更新发言时间
1 parent 051b9a3 commit e98c161

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin/chatcount/model.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ func (ctdb *chattimedb) updateChatTime(gid, uid int64) (todayTime int64, remindF
9494
})
9595
todayTime = (st.TodayTime + userChatTime) / 60
9696
remindFlag = getLevel(int(st.TodayTime+userChatTime)/60) > getLevel(int(st.TodayTime/60))
97+
}else{
98+
db.Model(&ChatTime{}).Where("group_id = ? and user_id = ?", gid, uid).Update(
99+
map[string]any{
100+
"last_time": now,
101+
})
97102
}
98103

99104
}

0 commit comments

Comments
 (0)