Browse Source

update

master
shenjiachi 1 week ago
parent
commit
4aa10f2534
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

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


// 2.2 添加更新后的任务 // 2.2 添加更新后的任务
err = svc.BatchAddLevelTask(session, req.UserLevelTasks, utils.StrToInt(req.LevelID))
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
if len(req.UserLevelTasks) > 0 {
err = svc.BatchAddLevelTask(session, req.UserLevelTasks, utils.StrToInt(req.LevelID))
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
} }


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


Loading…
Cancel
Save