From 98d15f9e54cedb53c0c3a567b00af7c284093621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=AF=E8=88=AA?= <101104760+ZhangSetSail@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:42:40 +0800 Subject: [PATCH] fix: update domain failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张启航 <101104760+ZhangSetSail@users.noreply.github.com> --- api/controller/apigateway/api_gateway_route.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/controller/apigateway/api_gateway_route.go b/api/controller/apigateway/api_gateway_route.go index 7fa0480b3..458f5ff32 100644 --- a/api/controller/apigateway/api_gateway_route.go +++ b/api/controller/apigateway/api_gateway_route.go @@ -219,8 +219,7 @@ func (g Struct) CreateHTTPAPIRoute(w http.ResponseWriter, r *http.Request) { httputil.ReturnBcodeError(r, w, bcode.ErrRouteNotFound) return } - - if roueList != nil && len(roueList.Items) > 0 && r.URL.Query().Get("appID")+roueList.Items[0].Name != name && !defaultDomain { + if roueList != nil && len(roueList.Items) > 0 && r.URL.Query().Get("intID")+roueList.Items[0].Name != name && !defaultDomain { logrus.Errorf("list check route failure: %v", err) httputil.ReturnBcodeError(r, w, bcode.ErrRouteExist) return