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 } 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 } 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,