From 2530919de299916927725539bd19fec1eafb8702 Mon Sep 17 00:00:00 2001 From: zw <894646498@qq.com> Date: Thu, 17 Oct 2024 21:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E7=BB=8F=E7=BA=AC=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 9eb803f451ad4bcf7398da6efd6c608c060b40eb --- internal/logic/adapters/createclusterlogic.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/logic/adapters/createclusterlogic.go b/internal/logic/adapters/createclusterlogic.go index 7fc560ef..d57640ad 100644 --- a/internal/logic/adapters/createclusterlogic.go +++ b/internal/logic/adapters/createclusterlogic.go @@ -51,11 +51,11 @@ func (l *CreateClusterLogic) CreateCluster(req *types.ClusterCreateReq) (resp *t cluster.CreateTime = time.Now().Format("2006-01-02 15:04:05") cluster.OwnerId = "0" // 获取集群经纬度 - location, err := GeoMap(req.RegionName) - if err != nil { - return nil, err - } - cluster.Location = location + //location, err := GeoMap(req.RegionName) + //if err != nil { + // return nil, err + //} + //cluster.Location = location cluster.Id = tool.GenSnowflakeIDStr() tx := l.svcCtx.DbEngin.Table("t_cluster").Create(&cluster)