Prechádzať zdrojové kódy

添加调用接口ip和端口

yejian 3 rokov pred
rodič
commit
c8f8a49854

+ 10 - 2
imcs-admin-boot/imcs-common/src/main/java/com/github/zuihou/common/constant/DictionaryKey.java

@@ -16,8 +16,7 @@ public interface DictionaryKey {
     //线边库最大库位数
     final Integer RESOURCE_MAX_NUM = 20;
     //指定接口URL地址
-    final String INSTRUCTION_URL = "http://192.168.170.240:8090/";
-
+    final String INSTRUCTION_URL = "http://106.15.38.8:8090/";
     //PLC
     String INTERFACETYPE_PLC = "01";
     //生产加工接口
@@ -139,4 +138,13 @@ public interface DictionaryKey {
         }
     };
 
+    //设备分类
+    Map<String, Map<String, String>> PLC_CATEGORY = new HashMap<String, Map<String, String>>(){
+        {
+            put("capsule", new HashMap<String,String>(){{put("url", "192.168.170.150");put("port", "4840");}});
+            put("framework", new HashMap<String,String>(){{put("url", "192.168.170.170");put("port", "4840");}});
+            put("safeguard", new HashMap<String,String>(){{put("url", "192.168.170.130");put("port", "4840");}});
+        }
+    };
+
 }