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,