LIVE_YE 2 سال پیش
والد
کامیت
4d183def3a

+ 22 - 0
boman-web-core/pom.xml

@@ -215,10 +215,29 @@
             <version>1.2.17</version>
         </dependency>
 
+
+        <!-- 本地jar包denpendency样例 -->
+
+        <!--<dependency>
+            <groupId>com.iflytek.wst</groupId>
+            <artifactId>wst-gateway-sdk-java</artifactId>
+            <scope>system</scope>
+            <version>1.0</version>
+            <systemPath>${basedir}/lib/wst-gateway-sdk-java-1.0.jar</systemPath>
+        </dependency>-->
+
+       <!-- <dependency>
+            <groupId>com.iflytek.wst</groupId>
+            <artifactId>wst-gateway-sdk-java</artifactId>
+            <version>1.0</version>
+        </dependency>-->
+
         <dependency>
             <groupId>com.iflytek.wst</groupId>
             <artifactId>wst-gateway-sdk-java</artifactId>
             <version>1.0</version>
+            <systemPath>${project.basedir}/src/main/resources/lib/wst-gateway-sdk-java-1.0.jar</systemPath>
+            <scope>system</scope>
         </dependency>
 
     </dependencies>
@@ -229,6 +248,9 @@
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <includeSystemScope>true</includeSystemScope>
+                </configuration>
                 <executions>
                     <execution>
                         <goals>

+ 2 - 2
boman-web-core/src/main/java/com/boman/web/core/wst/ExampleUnitTest.java

@@ -8,11 +8,11 @@ import java.io.IOException;
 
 public class ExampleUnitTest {
 
-    public static void main(String[] args) {
+    /*public static void main(String[] args) {
         ExampleUnitTest unitTest = new ExampleUnitTest();
         unitTest.pageBmfwForQueryList();
 
-    }
+    }*/
 
 
     /**

+ 7 - 5
boman-web-core/src/main/java/com/boman/web/core/wst/WstRestClient.java

@@ -24,20 +24,22 @@ public class WstRestClient extends ApacheHttpClient {
 
     // TODO 下面的参数,需要改为从配置文件读取
     // 测试环境
-    @Value("${wst.appKey}")
+   /* @Value("${wst.appKey}")
     private String appKey = "8a4ff1954caf4cab82c18f5886e7834e"; //根据实际情况填写
     @Value("${wst.appSecret}")
     private String appSecret = "e102667914bb407cb8aa79b82c0b8a0c"; //根据实际情况填写
     private Scheme scheme = Scheme.HTTP;
     private String host = "61.190.70.197:8800";
     private String contextPath = "/wst-gateway";
+    private String serviceId = "";*/
 
     // 生产环境
-    /*private String appKey = "8a4ff1954caf4cab82c18f5886e7834e"; //根据实际情况填写
-    private String appSecret = "e102667914bb407cb8aa79b82c0b8a0c"; //根据实际情况填写
+    private String appKey = "00fdf311578e4676bb32d25d3f66687b"; //根据实际情况填写
+    private String appSecret = "f8c4dd7661e447289140d7e51cd5ff4e"; //根据实际情况填写
     private Scheme scheme = Scheme.HTTPS;
     private String host = "www.ahzwfw.gov.cn";
-    private String contextPath = "/wst-gateway";*/
+    private String contextPath = "/wst-gateway";
+    private String serviceId = "05e28566cd8d4737b491fc2c2c2cb2c0";
 
 
     private WstRestClient() {
@@ -102,7 +104,7 @@ public class WstRestClient extends ApacheHttpClient {
     public ApiResponse getUserInfoByToken(String token){
         ApiRequest request = new ApiRequest(HttpMethod.GET, "/user/getUserInfoByToken");
         request.addParam("token", token, ParamPosition.QUERY, true);
-        request.addParam("serviceId", "服务id 可以不填", ParamPosition.QUERY, true);
+        request.addParam("serviceId", serviceId, ParamPosition.QUERY, true);
         request.addParam("roleCode", "", ParamPosition.QUERY, true);
         return sendSyncRequest(request);
     }

+ 0 - 0
boman-web-core/lib/commons-codec-1.11.jar → boman-web-core/src/main/resources/lib/commons-codec-1.11.jar


+ 0 - 0
boman-web-core/lib/commons-logging-1.2.jar → boman-web-core/src/main/resources/lib/commons-logging-1.2.jar


+ 0 - 0
boman-web-core/lib/fastjson-1.2.58.jar → boman-web-core/src/main/resources/lib/fastjson-1.2.58.jar


+ 0 - 0
boman-web-core/lib/httpclient-4.5.9.jar → boman-web-core/src/main/resources/lib/httpclient-4.5.9.jar


+ 0 - 0
boman-web-core/lib/httpcore-4.4.11.jar → boman-web-core/src/main/resources/lib/httpcore-4.4.11.jar


+ 0 - 0
boman-web-core/lib/wst-gateway-sdk-java-1.0.jar → boman-web-core/src/main/resources/lib/wst-gateway-sdk-java-1.0.jar