Skip to content

Commit

Permalink
fix: update domain failure
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail committed Dec 3, 2024
1 parent 4fb7f49 commit 98d15f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/controller/apigateway/api_gateway_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98d15f9

Please sign in to comment.