Merge pull request 'main' (#509) from main into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/509
This commit is contained in:
commit
72067fa808
|
@ -4677,7 +4677,7 @@ func (m *Mongo) GetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_partne
|
|||
"zid": util.DerefInt64(req.Zid),
|
||||
"del_flag": 0,
|
||||
}
|
||||
err := col.Find(ctx, query).One(&zoneThirdPartner)
|
||||
err := col.Find(ctx, query).One(zoneThirdPartner)
|
||||
if err == qmgo.ErrNoSuchDocuments {
|
||||
err = nil
|
||||
return nil, err
|
||||
|
|
|
@ -3051,18 +3051,6 @@ func (s *Service) ApiGetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_p
|
|||
return
|
||||
}
|
||||
|
||||
if zone.GetIsZoneThirdPartnerHided() == consts.IsHided_Yes {
|
||||
vo = &zone_third_partner_proto.ZoneThirdPartnerApiVO{
|
||||
ZoneThirdPartner: &dbstruct.ZoneThirdPartner{
|
||||
Zid: req.Zid,
|
||||
ThirdPartnerMid: nil,
|
||||
SharingRatio: nil,
|
||||
},
|
||||
IsHided: consts.IsHided_Yes,
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
acct, err := _DefaultAccount.OpListByMid(ctx, &accountproto.OpListByMidReq{
|
||||
Mid: zoneThirdPartner.ThirdPartnerMid,
|
||||
})
|
||||
|
@ -3082,7 +3070,7 @@ func (s *Service) ApiGetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_p
|
|||
vo = &zone_third_partner_proto.ZoneThirdPartnerApiVO{
|
||||
ZoneThirdPartner: zoneThirdPartner,
|
||||
Account: acctVO,
|
||||
IsHided: consts.IsHided_No,
|
||||
IsHided: zone.GetIsZoneThirdPartnerHided(),
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue