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

Skip to content

Commit c82bcdc

Browse files
committed
Merge branch 'master' into develop
2 parents c81132e + 1568b7a commit c82bcdc

File tree

1 file changed

+1
-1
lines changed
  • websites/code/studygolang/src/controller

1 file changed

+1
-1
lines changed

websites/code/studygolang/src/controller/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func ProjectDetailHandler(rw http.ResponseWriter, req *http.Request) {
171171
service.Views.Incr(req, model.TYPE_PROJECT, project.Id)
172172

173173
// 为了阅读数即时看到
174-
project.Cmtnum++
174+
project.Viewnum++
175175

176176
req.Form.Set(filter.CONTENT_TPL_KEY, "/template/projects/detail.html")
177177
filter.SetData(req, map[string]interface{}{"activeProjects": "active", "project": project, "likeflag": likeFlag, "hadcollect": hadCollect})

0 commit comments

Comments
 (0)