huangjiajun 4 days ago
parent
commit
ed796170d2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/store/svc/svc_task.go

+ 1
- 1
app/store/svc/svc_task.go View File

@@ -368,7 +368,7 @@ func TaskSave(c *gin.Context) {
taskDetail.VideoCourse = args.VideoCourse
taskDetail.Instructions = args.Instructions
taskNotice.Content = args.Announcement
_, err = sess.Where("id=?", task.Id).Update(task)
_, err = sess.Where("id=?", task.Id).AllCols().Update(task)
if err != nil {
sess.Rollback()
e.OutErr(c, 400, e.NewErr(400, "发布失败"))


Loading…
Cancel
Save