From 248314af0b314136e481e30f313af1f1572dbe24 Mon Sep 17 00:00:00 2001
From: william feng <>
Date: Fri, 7 Aug 2020 16:37:26 +0800
Subject: [PATCH] add default priority 0 for condition url which neither
 application nor service level router

---
 cluster/router/condition/router.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cluster/router/condition/router.go b/cluster/router/condition/router.go
index 894080506..6be3a4fc0 100644
--- a/cluster/router/condition/router.go
+++ b/cluster/router/condition/router.go
@@ -120,8 +120,10 @@ func NewConditionRouter(url *common.URL) (*ConditionRouter, error) {
 	var defaultPriority int64
 	if url.GetParam(constant.APPLICATION_KEY, "") != "" {
 		defaultPriority = 150
-	} else {
+	} else if url.GetParam(constant.INTERFACE_KEY, "") != "" {
 		defaultPriority = 140
+	} else {
+		defaultPriority = 0
 	}
 	router.priority = url.GetParamInt(constant.RouterPriority, defaultPriority)
 	router.Force = url.GetParamBool(constant.RouterForce, false)
-- 
GitLab