From 2e50c813f2d089e0265b13a7f9c5a9b23829130c Mon Sep 17 00:00:00 2001
From: liriming <1343021927@qq.com>
Date: 星期四, 20 三月 2025 18:11:57 +0800
Subject: [PATCH] sdk修改

---
 iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/client/IailabClient.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/client/IailabClient.java b/iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/client/IailabClient.java
index a7a2f43..96b3342 100644
--- a/iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/client/IailabClient.java
+++ b/iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/client/IailabClient.java
@@ -200,16 +200,16 @@
         return authTokenDTO;
     }
 
-    public CommonResult<JSONObject> handleHttp(String method, String url, Map<String, Object> params) {
-        JSONObject data = new JSONObject();
+    public CommonResult<Object> handleHttp(String method, String url, Map<String, Object> params) {
+        Object data = new Object();
         String resp = null;
         try {
             String upperMethod = method.toUpperCase();
             if ("GET".equals(upperMethod)) {
-                resp = IailabHttpUtils.doGet(url, params, CHARSET);
+                resp = IailabHttpUtils.doGet(BASE_URL +url, params, CHARSET);
             } else if ("POST".equals(upperMethod)) {
                 ObjectMapper objectMapper = new ObjectMapper();
-                resp = IailabHttpUtils.doPost(url, objectMapper.writeValueAsString(params), CHARSET);
+                resp = IailabHttpUtils.doPost(BASE_URL +url, objectMapper.writeValueAsString(params), CHARSET);
             }
             if (StringUtils.isEmpty(resp)) {
                 return CommonResult.error(GlobalErrorCodeConstants.EMPTY_RESP);
@@ -219,7 +219,7 @@
             if (!GlobalErrorCodeConstants.SUCCESS.getCode().equals(respCode)) {
                 CommonResult.error(respCode, jsonObject.getString(RESP_MSG));
             }
-            data = jsonObject.getJSONObject(RESP_DATA);
+            data = jsonObject.get(RESP_DATA);
         } catch (Exception ex) {
             ex.printStackTrace();
             return CommonResult.error(GlobalErrorCodeConstants.UNKNOWN.getCode(), ex.getMessage());

--
Gitblit v1.9.3