Sfoglia il codice sorgente

服务代理地址

DESKTOP-2K9OVK9\siwei 5 mesi fa
parent
commit
f35da207a6

+ 8 - 4
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/zymlapplication/MyExamineServiceImpl.java

@@ -4,6 +4,7 @@ import com.onemap.apply.mapper.zymlapplication.TMyExamineMapper;
 import com.onemap.apply.service.zymlapplication.IMyExamineService;
 import com.onemap.common.core.utils.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 
 import java.util.Map;
@@ -13,7 +14,10 @@ public class MyExamineServiceImpl implements IMyExamineService {
 
     @Autowired
     private TMyExamineMapper myExamineMapper;
-    private String paroxy_url = "http://192.168.60.2:8080/proxy/handle/{token}/siweiserver/";
+
+    @Value("${siweiserver.paroxy.url}")
+    public String serverParoxyUrl;
+//    private String serverParoxyUrl = "http://192.168.60.2:8080/proxy/handle/{token}/siweiserver/";
 
     @Override
     public String getProxyServerUrl(String fwKey, String fwid) {
@@ -36,7 +40,7 @@ public class MyExamineServiceImpl implements IMyExamineService {
             Integer maximumlevel = (Integer) mapfwData.get("maximumlevel");
             Integer minimumlevel = (Integer) mapfwData.get("minimumlevel");
             String params = "";
-            params = params + paroxy_url.replace("{token}", fwKey) + url + "?";
+            params = params + serverParoxyUrl.replace("{token}", fwKey) + url + "?";
             params = params + paramsTogether("server_type", type, true);
             params = params + paramsTogether("fwmc", fwmc, true);
             params = params + paramsTogether("fwgzkj", fwgzkj, true);
@@ -52,7 +56,7 @@ public class MyExamineServiceImpl implements IMyExamineService {
                 int len = url.indexOf("3Dtiles");
                 url = url.substring(len + 7);
                 String params = "";
-                params = params + paroxy_url.replace("{token}", fwKey) + url;
+                params = params + serverParoxyUrl.replace("{token}", fwKey) + url;
                 return params;
             } else {
                 //超图的
@@ -60,7 +64,7 @@ public class MyExamineServiceImpl implements IMyExamineService {
                 url = url.substring(len + 7);
                 String sde = (String) mapfwData.get("sde");
                 String params = "";
-                params = params + paroxy_url.replace("{token}", fwKey) + url + "?";
+                params = params + serverParoxyUrl.replace("{token}", fwKey) + url + "?";
                 params = params + paramsTogether("server_type", type, true);
                 params = params + paramsTogether("sde", sde, false);
                 return params;