From c6dab103c195a5d502a4238f354a914b6254b7cc Mon Sep 17 00:00:00 2001
From: liriming <1343021927@qq.com>
Date: 星期五, 21 三月 2025 13:41:44 +0800
Subject: [PATCH] sdk更新

---
 libs/iailab-plat-sdk-1.0.0.jar                            |    0 
 libs/iailab-plat-sdk-1.0.0-jar-with-dependencies.jar      |    0 
 src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java |   10 +++++-----
 src/main/resources/application.yaml                       |   15 ++++++++++-----
 4 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/libs/iailab-plat-sdk-1.0.0-jar-with-dependencies.jar b/libs/iailab-plat-sdk-1.0.0-jar-with-dependencies.jar
index 0b9281a..7ea2d7e 100644
--- a/libs/iailab-plat-sdk-1.0.0-jar-with-dependencies.jar
+++ b/libs/iailab-plat-sdk-1.0.0-jar-with-dependencies.jar
Binary files differ
diff --git a/libs/iailab-plat-sdk-1.0.0.jar b/libs/iailab-plat-sdk-1.0.0.jar
index ea3d6c7..4489e3d 100644
--- a/libs/iailab-plat-sdk-1.0.0.jar
+++ b/libs/iailab-plat-sdk-1.0.0.jar
Binary files differ
diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml
index 3b0b185..577a2f9 100644
--- a/src/main/resources/application.yaml
+++ b/src/main/resources/application.yaml
@@ -17,8 +17,13 @@
 #    client-secret: S3mYv7LkF1xJtQqWp9rZ2cVb8N6hT0D #租户OAuth2客户端密钥
 #    username: shasteel
 
-        base-url: http://127.0.0.1:48080/admin-api #平台接口url,使用时需修改成真实的ip和端口
-        tenant-id: 176 #租户id
-        client-id: ansteel #租户OAuth2客户端id
-        client-secret: q3vY7K9PmFjW1xLbN6rTtZz2cV4B5sD0 #租户OAuth2客户端密钥
-        username: ansteel
+#    base-url: http://127.0.0.1:48080/admin-api #平台接口url,使用时需修改成真实的ip和端口
+#    tenant-id: 176 #租户id
+#    client-id: ansteel #租户OAuth2客户端id
+#    client-secret: q3vY7K9PmFjW1xLbN6rTtZz2cV4B5sD0 #租户OAuth2客户端密钥
+#    username: ansteel
+    base-url: http://10.50.37.62/admin-api #平台接口url,使用时需修改成真实的ip和端口
+    tenant-id: 176 #租户id
+    client-id: ansteel #租户OAuth2客户端id
+    client-secret: ansteel111111111111111 #租户OAuth2客户端密钥
+    username: ansteel
\ No newline at end of file
diff --git a/src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java b/src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java
index ee15eeb..aa8ee79 100644
--- a/src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java
+++ b/src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java
@@ -44,14 +44,14 @@
     @Test
     public void testHandleHttp() {
         Map<String, Object> params = new HashMap<>();
-        params.put("chartCode","BFG_PRED01");
+/*        params.put("chartCode","BFG_PRED01");
         String url = "/ansteel/api/mcs/predict-data/charts";
         CommonResult<Object> commonResult = httpClientDemo.handleHttp("POST",url,params);
-        System.out.println(commonResult.getData());
+        System.out.println(commonResult.getData());*/
 
-//        String url = "/ansteel/api/mcs/power-run-state/list";
-//        CommonResult<Object> commonResult = httpClientDemo.handleHttp("GET",url,params);
-//        System.out.println(commonResult.getData());
+        String url = "/ansteel/api/mcs/power-run-state/list";
+        CommonResult<Object> commonResult = httpClientDemo.handleHttp("GET",url,params);
+        System.out.println(commonResult.getData());
     }
 
 }

--
Gitblit v1.9.3