From 9e1ec21e31dc0e7de1bc08e6fa340b271a57a77d Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 11 Apr 2024 14:40:18 +0800 Subject: [PATCH] b --- app/mix/controller/zone_third_partner_api.go | 2 +- app/mix/service/apiservice.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mix/controller/zone_third_partner_api.go b/app/mix/controller/zone_third_partner_api.go index 20299a42..58fc781c 100644 --- a/app/mix/controller/zone_third_partner_api.go +++ b/app/mix/controller/zone_third_partner_api.go @@ -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) } diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 75786cf9..bf2611ef 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -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 }