dengbiao 1 day ago
parent
commit
78faec04ed
3 changed files with 5 additions and 2 deletions
  1. +1
    -1
      app/svc/article/svc_list.go
  2. +1
    -1
      app/svc/user_feedback/svc_cate.go
  3. +3
    -0
      app/svc/user_feedback/svc_list.go

+ 1
- 1
app/svc/article/svc_list.go View File

@@ -110,7 +110,7 @@ func Save(c *gin.Context) {
data.Sort = utils.StrToInt(req.Sort) data.Sort = utils.StrToInt(req.Sort)
data.Pid = utils.StrToInt(req.Pid) data.Pid = utils.StrToInt(req.Pid)
data.IsShow = utils.StrToInt(req.IsShow) 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) e.OutSuc(c, "success", nil)
return return
} }


+ 1
- 1
app/svc/user_feedback/svc_cate.go View File

@@ -55,7 +55,7 @@ func CateSave(c *gin.Context) {
} }
data.Name = req.Name data.Name = req.Name
data.Sort = utils.StrToInt(req.Sort) 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) e.OutSuc(c, "success", nil)
return return
} }


+ 3
- 0
app/svc/user_feedback/svc_list.go View File

@@ -73,6 +73,9 @@ func List(c *gin.Context) {
v.Phone = user.Phone v.Phone = user.Phone
} }
} }
for k1, v1 := range img {
img[k1] = svc.GetOssUrl(v1)
}
tmp := md.UserFeedbackList{ tmp := md.UserFeedbackList{
Id: utils.IntToStr(v.Id), Id: utils.IntToStr(v.Id),
Phone: v.Phone, Phone: v.Phone,


Loading…
Cancel
Save