This commit is contained in:
@@ -52,7 +52,7 @@ func (s *TalkService) Cheak(mapid uint32, flag int) (int, bool) {
|
||||
return int(talks.Count), true //int(config.MaxDailyCnt - talks.Count)
|
||||
|
||||
}
|
||||
func (s *TalkService) Update(flag int) {
|
||||
func (s *TalkService) Update(flag int, count int) {
|
||||
if cool.Config.ServerInfo.IsVip != 0 {
|
||||
|
||||
return
|
||||
@@ -65,6 +65,6 @@ func (s *TalkService) Update(flag int) {
|
||||
s.dbm(s.Model).Data(talks).FieldsEx("id").Insert()
|
||||
}
|
||||
|
||||
s.dbm(s.Model).Where("talk_id", flag).Increment("count", 1)
|
||||
s.dbm(s.Model).Where("talk_id", flag).Increment("count", count)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user