From 1ecae673f66cc168aa6331e5bd7d9d1bfdcf50c3 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 11 Apr 2024 21:56:48 +0800 Subject: [PATCH] by Robin at 20240411 --- api/proto/streamer/proto/streamer_vo_api.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/proto/streamer/proto/streamer_vo_api.go b/api/proto/streamer/proto/streamer_vo_api.go index dc2edb28..6093ae91 100644 --- a/api/proto/streamer/proto/streamer_vo_api.go +++ b/api/proto/streamer/proto/streamer_vo_api.go @@ -110,5 +110,9 @@ func (vo *ApiListExtVO) CopyUserVas(userVas *dbstruct.UserVasInfo) { } func (vo *ApiListExtVO) CopyZones(zones []*dbstruct.Zone) { - vo.Zones = zones + if zones == nil { + vo.Zones = make([]*dbstruct.Zone, 0) + } else { + vo.Zones = zones + } }