Skip to content

Commit

Permalink
🐛 更新发言时间
Browse files Browse the repository at this point in the history
  • Loading branch information
guohuiyuan committed May 22, 2024
1 parent 051b9a3 commit e98c161
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/chatcount/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ 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{
db.Model(&ChatTime{}).Where("group_id = ? and user_id = ?", gid, uid).Update(
map[string]any{
"last_time": now,
})
}

}
Expand Down

0 comments on commit e98c161

Please sign in to comment.