diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index a42f6011..ecf18e41 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -3119,6 +3119,14 @@ func (s *Service) ApiGetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_p vo = nil return } + if zoneThirdPartner.GetIsHided() == 1 { + zoneThirdPartner.ThirdPartnerMid = nil + zoneThirdPartner.SharingRatio = nil + vo = &zone_third_partner_proto.ZoneThirdPartnerApiVO{ + ZoneThirdPartner: zoneThirdPartner, + } + return + } acct, err := _DefaultAccount.OpListByMid(ctx, &accountproto.OpListByMidReq{ Mid: zoneThirdPartner.ThirdPartnerMid, diff --git a/dbstruct/zone_third_partner.go b/dbstruct/zone_third_partner.go index 3e5cebcb..ce3467ca 100644 --- a/dbstruct/zone_third_partner.go +++ b/dbstruct/zone_third_partner.go @@ -5,6 +5,7 @@ type ZoneThirdPartner struct { Zid *int64 `json:"zid" bson:"zid"` // 空间id ThirdPartnerMid *int64 `json:"third_partner_mid" bson:"third_partner_mid"` // 代运营用户id SharingRatio *float64 `json:"sharing_ratio" bson:"sharing_ratio"` // 分成比例 + IsHided *int64 `json:"is_hided" bson:"is_hided"` // 是否隐藏 Ct *int64 `json:"ct" bson:"ct"` // 创建时间 Ut *int64 `json:"ut" bson:"ut"` // 更新时间 DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记 @@ -31,3 +32,10 @@ func (p *ZoneThirdPartner) GetSharingRatio() float64 { } return 0 } + +func (p *ZoneThirdPartner) GetIsHided() int64 { + if p != nil && p.IsHided != nil { + return *p.IsHided + } + return 0 +}