Merge remote-tracking branch 'origin/main' into test

This commit is contained in:
Leufolium 2024-11-05 21:30:16 +08:00
commit 2cde89a882
1 changed files with 4 additions and 3 deletions

View File

@ -2906,11 +2906,12 @@ func (s *Service) ApiUpdateZone(ctx *gin.Context, req *zoneproto.ApiUpdateReq) (
ec = errcode.ErrCodeZoneSrvFail ec = errcode.ErrCodeZoneSrvFail
return return
} }
newOne, _ = _DefaultVas.GetZoneVasInfo(ctx, req.Zone.GetId()) newOne, _ = _DefaultVas.GetZoneVasInfo(ctx, req.Zone.GetId())
req.Zone.Profile = goproto.String(profile) if profile != "" {
s.CreateZoneTextAudit(ctx, oldZone, req.Zone) req.Zone.Profile = goproto.String(profile)
s.CreateZoneTextAudit(ctx, oldZone, req.Zone)
}
return return
} }