diff --git a/app/svc/article/svc_cate.go b/app/svc/article/svc_cate.go index a842538..66f6092 100644 --- a/app/svc/article/svc_cate.go +++ b/app/svc/article/svc_cate.go @@ -69,7 +69,7 @@ func CateSave(c *gin.Context) { data.Sort = utils.StrToInt(req.Sort) data.Pid = utils.StrToInt(req.Pid) data.IsShow = utils.StrToInt(req.IsShow) - db.Db.Where("id=?", data.Id).Update(data) + db.Db.Where("id=?", data.Id).AllCols().Update(data) e.OutSuc(c, "success", nil) return }