mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 09:18:49 +01:00
🎨 命名查询数据损坏的情况下返回空
This commit is contained in:
parent
2377e05ba4
commit
c4aeb9f7b6
2 changed files with 4 additions and 8 deletions
|
|
@ -122,12 +122,7 @@ func getCriteria(c *gin.Context) {
|
|||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
data, err := model.GetCriteria()
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
return
|
||||
}
|
||||
data := model.GetCriteria()
|
||||
ret.Data = data
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue