by Robin at 20240820; no zone price

This commit is contained in:
Leufolium 2024-08-20 18:47:56 +08:00
parent 58e5c6ab1d
commit 7a3754550f
3 changed files with 6 additions and 3 deletions

View File

@ -98,3 +98,5 @@ const (
StreamerAuthApproval_OneOffVersion = 0
StreamerAuthApproval_SeparateVersion = 1
)
const ZoneAdmissionPrice_NoZone = int64(-999999)

View File

@ -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

View File

@ -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(),