diff --git a/api/consts/option.go b/api/consts/option.go index c70abb54..78ab15a9 100644 --- a/api/consts/option.go +++ b/api/consts/option.go @@ -98,3 +98,5 @@ const ( StreamerAuthApproval_OneOffVersion = 0 StreamerAuthApproval_SeparateVersion = 1 ) + +const ZoneAdmissionPrice_NoZone = int64(-999999) diff --git a/app/mix/service/logic/es_decorated.go b/app/mix/service/logic/es_decorated.go index 6a0e54e1..12245df3 100644 --- a/app/mix/service/logic/es_decorated.go +++ b/app/mix/service/logic/es_decorated.go @@ -1,6 +1,7 @@ package logic import ( + "service/api/consts" streamerproto "service/api/proto/streamer/proto" zoneproto "service/api/proto/zone/proto" "service/bizcommon/util" @@ -111,7 +112,7 @@ func (p *ZoneDecrtByEs) OpDelete(ctx *gin.Context, id int64) error { // 更新es if err := p.StreamerAcct.OpUpdateSelectively(ctx, &dbstruct.EsStreamerAcctUpdater{ Mid: zone.Mid, - ZoneAdmissionPrice: goproto.Int64(-1), + ZoneAdmissionPrice: goproto.Int64(consts.ZoneAdmissionPrice_NoZone), }); err != nil { logger.Error("OpUpdateSelectively fail, err: %v", err) return err diff --git a/app/mix/service/service.go b/app/mix/service/service.go index 2a2a2f89..a0b229e3 100644 --- a/app/mix/service/service.go +++ b/app/mix/service/service.go @@ -1905,7 +1905,7 @@ func (s *Service) OpApproveStreamerAuthApproval(ctx *gin.Context, req *streamera Constellation: streamer.GetConstellation(), LastZoneMomentCreateDayStart: 0, WechatCoinPrice: util.DerefInt64(list[i].WechatCoinPrice), - ZoneAdmissionPrice: -1, // es只用于过滤搜索,设置为-1不影响付款 + ZoneAdmissionPrice: consts.ZoneAdmissionPrice_NoZone, // es只用于过滤搜索,设置不影响付款 Ct: acct.GetCt(), Ut: acct.GetUt(), DelFlag: acct.GetDelFlag(), @@ -2267,7 +2267,7 @@ func (s *Service) OpApproveStreamerAuthApprovalDetails(ctx *gin.Context, req *st Constellation: streamer.GetConstellation(), LastZoneMomentCreateDayStart: 0, WechatCoinPrice: util.DerefInt64(streamerAuthApprovalDetails.WechatCoinPrice), - ZoneAdmissionPrice: -1, // es只用于过滤搜索,设置为-1不影响付款 + ZoneAdmissionPrice: consts.ZoneAdmissionPrice_NoZone, // es只用于过滤搜索,设置不影响付款 Ct: acct.GetCt(), Ut: acct.GetUt(), DelFlag: acct.GetDelFlag(),