提交 2b55710148bde34b3b350751680dfd35ee7aa3b1

作者 LJH 李佳桓
1 个父辈 26001952

config

... ... @@ -9,6 +9,7 @@
9 9 #include "dmpservermanager.h"
10 10 #include "dmpserver.h"
11 11 #include "dmphttputils.h"
  12 +#include "dmpserverConfig.h"
12 13 #include <memory>
13 14 #include <boost/property_tree/ptree.hpp>
14 15 #include <boost/property_tree/json_parser.hpp>
... ... @@ -146,8 +147,8 @@ bool DmpServerManager::stopService(const std::string &serverName, const std::str
146 147 bool DmpServerManager::LoadServices()
147 148 {
148 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 152 std::string strContent=DmpHttp::get(url);
152 153 if(strContent.length()==0)
153 154 {
... ...
... ... @@ -44,7 +44,7 @@ namespace DmpWms
44 44 }
45 45 else if(boost::iequals(request, "getcapabilities"))
46 46 {
47   - writeGetCapabilities(context,params, project);
  47 + writeGetCapabilities(context,params, project);
48 48 }
49 49 else if(boost::iequals(request, "getmap"))
50 50 {
... ...
注册登录 后发表评论