txf 3 rokov pred
rodič
commit
4982fddbea

+ 6 - 0
src/main/java/com/steerinfo/dil/mapper/QueueInterfaceMapper.java

@@ -20,4 +20,10 @@ public interface QueueInterfaceMapper {
     //更新区域ID
     @Update("update DIL_VERSION DV set DV.VERSION_VALUE = #{areaId} where DV.VERSION_TYPE = 2")
     int updateAreaId(@Param("areaId") String areaId);
+
+    @Select("select VERSION_VALUE from DIL_VERSION where VERSION_TYPE = 3")
+    String getToken();
+
+    @Update("update DIL_VERSION set VERSION_VALUE = #{token} where VERSION_TYPE = 3")
+    int updateToken(@Param("token") String token);
 }

+ 3 - 3
src/main/java/com/steerinfo/dil/service/impl/QueueInterfaceServiceImpl.java

@@ -117,7 +117,7 @@ public class QueueInterfaceServiceImpl {
         mesMap.put("radius", radius);
         mesMap.put("type", "1");
         mesMap.put("actiontype", "1");
-        String url = "https://openapi-test.sinoiov.cn/save/apis/areaReg";
+        String url = "https://openapi.sinoiov.cn/save/apis/areaReg";
         try {
             DataExchangeService des = new DataExchangeService(5000, 8000);
             // 通过 https 方式调用,此方法内部会使用私钥生成签名参数 sign,私钥不会发送
@@ -159,7 +159,7 @@ public class QueueInterfaceServiceImpl {
             map.put("pwd", pwd);
             map.put("cid", cid);
             map.put("srt", srt);
-            String url = "https://openapi-test.sinoiov.cn/save/apis/login/";
+            String url = "https://openapi.sinoiov.cn/save/apis/login/";
             DataExchangeService des = new DataExchangeService(5000, 8000);
             // 通过 https 方式调用,此方法内部会使用私钥生成签名参数 sign,私钥不会发送
             String res = des.postHttps(url, map);
@@ -192,7 +192,7 @@ public class QueueInterfaceServiceImpl {
         mesMap.put("userflag", userflag);
         mesMap.put("vnos", (String) map.get("capacityNumber"));
         mesMap.put("areaid", queueInterfaceMapper.getAreaId());
-        String url = "https://openapi-test.sinoiov.cn/save/apis/vnoDel";
+        String url = "https://openapi.sinoiov.cn/save/apis/vnoDel";
         try {
             DataExchangeService des = new DataExchangeService(5000, 8000);
             String res = des.postHttps(url, mesMap);

+ 5 - 5
src/main/resources/bootstrap.yml

@@ -10,7 +10,7 @@ spring:
   mvc:
     static-path-pattern:
   profiles:
-    include: ${SPRING_PROFILES:dev}
+    include: ${SPRING_PROFILES:prod}
 #  cloud:
 #    config:
 #      fail-fast: true
@@ -58,7 +58,7 @@ str:
   tengxun:
     key: WDTBZ-A5VKJ-UDLFI-KYJY6-WTP2S-A6B4Y
   ZhongJiaoXingLu:
-    cid: 72c918a9-49d7-434e-ae24-e3b36a589800
-    srt: b6549e66-e3a2-44f2-a1a3-d1f77d6c96f2
-    user: f760f293-4234-4495-90c0-fa1bf5f29bf6
-    pwd: 5T91u0h5SVg132G41440MD1jj2B77I
+    cid: 84254ac6-9f05-47c7-ba3c-1d3398590d70
+    srt: b7c4b6ee-09c8-4865-a0b7-934d42205012
+    user: 108e0bda-1795-4e43-9df9-426a446eb77f
+    pwd: cKyp9G98yFy3gHBHG21us7z85377S1