ZWJzhangwanjie commented on code in PR #6061:
URL: https://github.com/apache/shenyu/pull/6061#discussion_r2218309339


##########
shenyu-plugin/shenyu-plugin-mcp-server/src/main/java/org/apache/shenyu/plugin/mcp/server/request/RequestConfigHelper.java:
##########
@@ -161,66 +202,47 @@ public static String buildPath(final String urlTemplate, 
final JsonObject argsPo
                 }
             }
         }
-        
-        // clean up the base path by removing any placeholders that were not 
replaced
-        basePath = basePath.replaceAll("\\{\\{\\.[^}]+}}", "");
-        
-        // build the final path
+        return modifiedBasePath;
+    }
+
+    /**
+     * Build the final path with query parameters.
+     *
+     * @param basePath the base path
+     * @param queryBuilder the query builder
+     * @param hasExistingQuery whether there are existing query parameters
+     * @param existingQuery the existing query string
+     * @return the final path
+     */
+    private static String buildFinalPath(final String basePath, final 
StringBuilder queryBuilder,
+                                       final boolean hasExistingQuery, final 
String existingQuery) {
         StringBuilder finalPath = new StringBuilder(basePath);
-        
-        // add new query parameters if any
+
+        // 添加查询参数

Review Comment:
   Yes , I'm dealing with it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to