正在显示
2 个修改的文件
包含
4 行增加
和
3 行删除
... | ... | @@ -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 | { | ... | ... |
请
注册
或
登录
后发表评论