Browse Source

update

master
shenjiachi 1 day ago
parent
commit
79cb9e3903
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      app/hdl/member_center/hdl_tag_management.go

+ 5
- 3
app/hdl/member_center/hdl_tag_management.go View File

@@ -107,6 +107,10 @@ func UpdateTag(c *gin.Context) {
e.OutErr(c, e.ERR_NO_DATA, errors.New("标签不存在").Error())
return
}
tag := &model.UserTag{
Id: tagID,
}

if oldTag.IsPunish != req.IsPunish {
// 标签在被使用情况下不允许修改是否为处罚标签
recordsDb := implement.NewUserTagRecordsDb(db.Db)
@@ -119,9 +123,7 @@ func UpdateTag(c *gin.Context) {
e.OutErr(c, e.ERR, errors.New("该标签已被使用,无法修改是否为处罚标签").Error())
return
}
}
tag := &model.UserTag{
Id: tagID,
tag.IsPunish = req.IsPunish
}

if req.Name != "" {


Loading…
Cancel
Save