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 1/3] =?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 } From 92c60ed8108455fd007ef778a6365cbd6da44e23 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 17:44:48 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/user_feedback/svc_list.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/svc/user_feedback/svc_list.go b/app/svc/user_feedback/svc_list.go index 2b8427e..2466adc 100644 --- a/app/svc/user_feedback/svc_list.go +++ b/app/svc/user_feedback/svc_list.go @@ -73,6 +73,9 @@ func List(c *gin.Context) { v.Phone = user.Phone } } + for k1, v1 := range img { + img[k1] = svc.GetOssUrl(v1) + } tmp := md.UserFeedbackList{ Id: utils.IntToStr(v.Id), Phone: v.Phone, From 52db6006c750ede4403227e53afa971ef98820d8 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 18:03:28 +0800 Subject: [PATCH 3/3] =?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/user_feedback/svc_cate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/svc/user_feedback/svc_cate.go b/app/svc/user_feedback/svc_cate.go index 29067e9..cc877fa 100644 --- a/app/svc/user_feedback/svc_cate.go +++ b/app/svc/user_feedback/svc_cate.go @@ -55,7 +55,7 @@ func CateSave(c *gin.Context) { } data.Name = req.Name data.Sort = utils.StrToInt(req.Sort) - db.Db.Where("id=?", data.Id).Update(data) + db.Db.Where("id=?", data.Id).AllCols().Update(data) e.OutSuc(c, "success", nil) return }