diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index d5f3e77d..93a24881 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -2906,11 +2906,12 @@ func (s *Service) ApiUpdateZone(ctx *gin.Context, req *zoneproto.ApiUpdateReq) ( ec = errcode.ErrCodeZoneSrvFail return } - newOne, _ = _DefaultVas.GetZoneVasInfo(ctx, req.Zone.GetId()) - 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 }