Skip to content

Commit

Permalink
The dss prod label interface forwarding problem was fixed. (#4746)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoyao authored Jul 7, 2023
1 parent 2c1ef52 commit 2a1d462
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ class DSSGatewayParser extends AbstractGatewayParser {
retService
}
}
val lowerServiceId = parsedServiceId.toLowerCase(Locale.getDefault())
var lowerServiceId = parsedServiceId.toLowerCase(Locale.getDefault())
val serverName = tmpServerName.toLowerCase(Locale.getDefault())
// 让prod的接口匹配到prod的服务
if (serverName.endsWith("-prod")) lowerServiceId += "/prod"
findIt(_.toLowerCase(Locale.getDefault()) == serverName).orElse(findMostCorrect(service => {
(service, lowerServiceId.split("/").count(word => service.contains(word)))
}))
Expand Down

0 comments on commit 2a1d462

Please sign in to comment.