From 8f505e0114e2499963ee1861b7fa44f38413e984 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 18:51:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/article/svc_cate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }