From cc882c203db032dc42d6b408badcb51c94074688 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 11 Apr 2024 14:37:45 +0800 Subject: [PATCH] by Robin at 20240411 --- app/mix/controller/zone_third_partner_api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/mix/controller/zone_third_partner_api.go b/app/mix/controller/zone_third_partner_api.go index ae8ea0e6..20299a42 100644 --- a/app/mix/controller/zone_third_partner_api.go +++ b/app/mix/controller/zone_third_partner_api.go @@ -58,7 +58,9 @@ func ApiGetZoneThirdPartnerList(ctx *gin.Context) { } //填充媒体切片 - mediafiller.FillEntity(ctx, zoneThirdPartner.Account.Avatar) + if zoneThirdPartner.Account != nil && zoneThirdPartner.Account.Avatar != nil { + mediafiller.FillEntity(ctx, zoneThirdPartner.Account.Avatar) + } data := &zone_third_partner_proto.ApiListData{ ZoneThirdPartner: zoneThirdPartner,