Merge pull request 'feat-IRONFANS-70' (#248) from feat-IRONFANS-70 into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/248
This commit is contained in:
chenhao 2024-04-11 14:40:50 +08:00
commit f27d653c9e
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ func ApiGetZoneThirdPartnerList(ctx *gin.Context) {
}
//填充媒体切片
if zoneThirdPartner.Account != nil && zoneThirdPartner.Account.Avatar != nil {
if zoneThirdPartner != nil && zoneThirdPartner.Account != nil && zoneThirdPartner.Account.Avatar != nil {
mediafiller.FillEntity(ctx, zoneThirdPartner.Account.Avatar)
}

View File

@ -2765,7 +2765,7 @@ func (s *Service) ApiGetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_p
return
}
if zoneThirdPartner == nil {
vo = &zone_third_partner_proto.ZoneThirdPartnerApiVO{}
vo = nil
return
}