This commit is contained in:
2018-04-05 21:08:30 +08:00
parent c3f5a5f5be
commit 976c62197a
6 changed files with 69 additions and 14 deletions

View File

@@ -64,7 +64,10 @@ public class IndexServlet extends BaseServlet {
//最新加入
Sheet<UserInfo> lastReg = userService.lastReg();
Kv kv = Kv.by("top", top).set("contents", contents).set("hotReply", hotReply).set("lastReg", lastReg);
//用户统计
Number userCount = userService.userCount();
Kv kv = Kv.by("top", top).set("contents", contents).set("hotReply", hotReply).set("lastReg", lastReg).set("userCount", userCount);
finish("index.html", kv);
}