mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-21 19:29:53 +08:00
升级基础框架和类库。解决在高版本beego框架下没有查到文章记录报错的问题
This commit is contained in:
@@ -27,11 +27,11 @@
|
|||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/PuerkitoBio/goquery"
|
name = "github.com/PuerkitoBio/goquery"
|
||||||
version = "1.3.0"
|
version = "1.4.1"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/astaxie/beego"
|
name = "github.com/astaxie/beego"
|
||||||
version = "1.9.2"
|
version = "1.10.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/boombuler/barcode"
|
name = "github.com/boombuler/barcode"
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/go-sql-driver/mysql"
|
name = "github.com/go-sql-driver/mysql"
|
||||||
version = "1.3.0"
|
version = "1.4.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/mattn/go-sqlite3"
|
name = "github.com/mattn/go-sqlite3"
|
||||||
version = "1.6.0"
|
version = "1.9.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|||||||
@@ -219,6 +219,9 @@ func (b *Blog) FindToPager(pageIndex, pageSize int,memberId int,status string) (
|
|||||||
_,err = query.OrderBy("-order_index","-blog_id").Offset(offset).Limit(pageSize).All(&blogList)
|
_,err = query.OrderBy("-order_index","-blog_id").Offset(offset).Limit(pageSize).All(&blogList)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if err == orm.ErrNoRows {
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
beego.Error("获取文章列表时出错 ->",err)
|
beego.Error("获取文章列表时出错 ->",err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user