From 2b3b5125871fad29d81c848b3b05055a66be106c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 17:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/article/svc_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/svc/article/svc_list.go b/app/svc/article/svc_list.go index 0d11974..464b510 100644 --- a/app/svc/article/svc_list.go +++ b/app/svc/article/svc_list.go @@ -110,7 +110,7 @@ func Save(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 }