正在显示
2 个修改的文件
包含
4 行增加
和
3 行删除
@@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
9 | #include "dmpservermanager.h" | 9 | #include "dmpservermanager.h" |
10 | #include "dmpserver.h" | 10 | #include "dmpserver.h" |
11 | #include "dmphttputils.h" | 11 | #include "dmphttputils.h" |
12 | +#include "dmpserverConfig.h" | ||
12 | #include <memory> | 13 | #include <memory> |
13 | #include <boost/property_tree/ptree.hpp> | 14 | #include <boost/property_tree/ptree.hpp> |
14 | #include <boost/property_tree/json_parser.hpp> | 15 | #include <boost/property_tree/json_parser.hpp> |
@@ -146,8 +147,8 @@ bool DmpServerManager::stopService(const std::string &serverName, const std::str | @@ -146,8 +147,8 @@ bool DmpServerManager::stopService(const std::string &serverName, const std::str | ||
146 | bool DmpServerManager::LoadServices() | 147 | bool DmpServerManager::LoadServices() |
147 | { | 148 | { |
148 | boost::property_tree::ptree pt,ptList; | 149 | boost::property_tree::ptree pt,ptList; |
149 | - | ||
150 | - const std::string url="http://172.26.60.100:8841/API/Service/TileService/Reload"; | 150 | + std::string conn = DmpServerConfig::Instance()->getMetaUrl(); |
151 | + const std::string url= conn + "/API/Service/TileService/Reload"; | ||
151 | std::string strContent=DmpHttp::get(url); | 152 | std::string strContent=DmpHttp::get(url); |
152 | if(strContent.length()==0) | 153 | if(strContent.length()==0) |
153 | { | 154 | { |
@@ -44,7 +44,7 @@ namespace DmpWms | @@ -44,7 +44,7 @@ namespace DmpWms | ||
44 | } | 44 | } |
45 | else if(boost::iequals(request, "getcapabilities")) | 45 | else if(boost::iequals(request, "getcapabilities")) |
46 | { | 46 | { |
47 | - writeGetCapabilities(context,params, project); | 47 | + writeGetCapabilities(context,params, project); |
48 | } | 48 | } |
49 | else if(boost::iequals(request, "getmap")) | 49 | else if(boost::iequals(request, "getmap")) |
50 | { | 50 | { |
请
注册
或
登录
后发表评论