From ba0a5103017d73b8b0679a9917cc99b006d498f3 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 5 Nov 2024 21:22:17 +0800 Subject: [PATCH] 1 --- app/mix/service/apiservice.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 9f0c6735..5dffcd67 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -2773,8 +2773,10 @@ func (s *Service) ApiUpdateZone(ctx *gin.Context, req *zoneproto.ApiUpdateReq) ( return } - req.Zone.Profile = goproto.String(profile) - s.CreateZoneTextAudit(ctx, oldZone, req.Zone) + if profile != "" { + req.Zone.Profile = goproto.String(profile) + s.CreateZoneTextAudit(ctx, oldZone, req.Zone) + } return }