Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01ffb7a

Browse files
committed
bugfix
1 parent e0d03c7 commit 01ffb7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logic/topic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ func (self TopicComment) UpdateComment(cid, objid, uid int, cmttime time.Time) {
455455
}
456456

457457
// 更新回复数(TODO:暂时每次都更新表)
458-
_, err = MasterDB.Id(objid).Incr("reply", 1).Update(new(model.TopicEx))
458+
_, err = MasterDB.Where("tid", objid).Incr("reply", 1).Update(new(model.TopicEx))
459459
if err != nil {
460460
logger.Errorln("更新主题回复数失败:", err)
461461
session.Rollback()

0 commit comments

Comments
 (0)