Quellcode durchsuchen

设置请求路径

yq vor 3 Jahren
Ursprung
Commit
31bebc8e0c

+ 5 - 3
mhfire-service/src/main/java/com/bizmatics/mhfire/service/api/AlertAndSiteApi.java

@@ -22,6 +22,8 @@ import java.util.Map;
  */
 @Log4j2
 public class AlertAndSiteApi {
+
+    private static final String URL = "http://32.1.7.42";
     /**
      * 账号
      */
@@ -33,15 +35,15 @@ public class AlertAndSiteApi {
     /**
      * 登录url
      */
-    private static final String LOGIN_URL = "http://172.200.50.4/mhxfzd/mhapi/bsUser/user/login";
+    private static final String LOGIN_URL = String.format("%s%s",URL,"/mhxfzd/mhapi/bsUser/user/login");
     /**
      * 警情url
      */
-    private static final String ALERT_URL = "http://172.200.50.4/mhxfzd/mhapi/xf/case/queryCase";
+    private static final String ALERT_URL = String.format("%s%s",URL,"/mhxfzd/mhapi/xf/case/queryCase");
     /**
      * 消防站点url
      */
-    private static final String FIRE_SITE_URL = "http://172.200.50.4/mhxfzd/mhapi/xf/fire/queryNature";
+    private static final String FIRE_SITE_URL = String.format("%s%s",URL,"/mhxfzd/mhapi/xf/fire/queryNature");;
 
     private static final ObjectMapper MAPPER = new ObjectMapper();