Skip to content

Commit

Permalink
API
Browse files Browse the repository at this point in the history
  • Loading branch information
TruthHun88 committed Mar 13, 2020
1 parent 2ba56cc commit 782706d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion change.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
- [x] `发现`页面SEO优化
- [x] 解决匿名访问时无法渲染文档的问题
- [x] 章节目录收起与展开
- [ ] 内容阅读页面样式代码块优化
- [x] 本月累计签到榜单和上月累计签到榜单
- [x] 内容阅读页面样式代码块优化
- [ ] 目录显示问题优化(公开项目,新建章节时不应该实时显示在前台,而应等发布之后再显示,避免实时显示时章节内容为空,影响阅读体验。)


Expand Down
2 changes: 2 additions & 0 deletions controllers/api/CommonController.go
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,8 @@ func (this *CommonController) Rank() {
sign := models.NewSign()
data["continuous_sign"] = sign.Sorted(limit, "total_continuous_sign", true)
data["total_sign"] = sign.Sorted(limit, "total_sign", true)
data["this_month_sign"] = sign.SortedByPeriod(limit, models.PeriodMonth, true)
data["last_month_sign"] = sign.SortedByPeriod(limit, models.PeriodLastMoth, true)
data["history_continuous_sign"] = sign.Sorted(limit, "history_total_continuous_sign", true)
case "popular":
bookCounter := models.NewBookCounter()
Expand Down

0 comments on commit 782706d

Please sign in to comment.