Browse Source

update

master
shenjiachi 1 week ago
parent
commit
783367d16f
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      app/hdl/member_center/hdl_level__management.go

+ 6
- 4
app/hdl/member_center/hdl_level__management.go View File

@@ -254,10 +254,12 @@ func AddLevel(c *gin.Context) {
} }


// 2. 创建任务信息 // 2. 创建任务信息
err = svc.BatchAddLevelTask(session, req.UserLevelTasks, id)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
if len(req.UserLevelTasks) > 0 {
err = svc.BatchAddLevelTask(session, req.UserLevelTasks, id)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
} }


err = session.Commit() err = session.Commit()


Loading…
Cancel
Save