This commit is contained in:
Leufolium 2024-04-11 14:40:18 +08:00
parent cc882c203d
commit 9e1ec21e31
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
}