优化代码

This commit is contained in:
lifei6671
2018-07-22 17:28:54 +08:00
parent cc32b6e8a7
commit 969fd44b9c
2 changed files with 1 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ func (c *BlogController) List() {
blogList,totalCount,err = models.NewBlog().FindToPager(pageIndex,conf.PageSize,0,"")
if err != nil {
if err != nil && err != orm.ErrNoRows {
c.ShowErrorPage(500,err.Error())
}
if totalCount > 0 {