Skip to content

Commit

Permalink
分页数调整
Browse files Browse the repository at this point in the history
  • Loading branch information
hale.huo committed Jul 18, 2020
1 parent cb2da39 commit 550f118
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/portal-ctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *PortalController) Get() {
}
pageSize, err := c.GetInt("pageSize")
if err != nil {
pageSize = 5
pageSize = 10
}
skip := (pageNo - 1) * pageSize
params := map[string]string{}
Expand Down
2 changes: 2 additions & 0 deletions run-by-pm2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ echo "上传文件......"
rz
echo "文件执行权限"
chmod u+x metal
echo "git pull"
git pull origin mater
echo "重启服务"
pm2 restart metal
# pm2 startOrRestart pm2.json

0 comments on commit 550f118

Please sign in to comment.