This is an automated email from the ASF dual-hosted git repository.
dengliming pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-client-java.git
The following commit(s) were added to refs/heads/main by this push:
new 9918904 feat: login get to post (#13)
9918904 is described below
commit 991890452b21929e004b967618ab9a65a17fa755
Author: eye-gu <[email protected]>
AuthorDate: Sun Jun 28 22:24:44 2026 +0800
feat: login get to post (#13)
---
.../main/java/org/apache/shenyu/client/core/utils/RegisterUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/utils/RegisterUtils.java
b/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/utils/RegisterUtils.java
index 544c511..93219ac 100644
---
a/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/utils/RegisterUtils.java
+++
b/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/utils/RegisterUtils.java
@@ -139,7 +139,7 @@ public final class RegisterUtils {
Map<String, Object> loginMap = new HashMap<>(2);
loginMap.put(Constants.LOGIN_NAME, username);
loginMap.put(Constants.PASS_WORD, password);
- String result = OkHttpTools.getInstance().get(url, loginMap);
+ String result = OkHttpTools.getInstance().post(url,
GsonUtils.getInstance().toJson(loginMap));
Map<String, Object> resultMap =
GsonUtils.getInstance().convertToMap(result);
if
(!String.valueOf(CommonErrorCode.SUCCESSFUL).equals(String.valueOf(resultMap.get(Constants.ADMIN_RESULT_CODE))))
{
return Optional.empty();