|
@@ -14,7 +14,9 @@ FromSuperBrain::FromSuperBrain()
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- m_url = "http://172.16.36.80:30000/vos";
|
|
|
|
|
|
+ m_url = "http://192.1.2.64:30000/vos";
|
|
|
|
+ m_appKey = "x1pcq13r";
|
|
|
|
+ m_appSecret = "Setyir9yxvSiFGB/wsv4YHWiNmrgeaZhzJKi7c7Gmk04Z5Kd/hCifL+0WnfCRDJF";
|
|
}
|
|
}
|
|
|
|
|
|
FromSuperBrain::~FromSuperBrain()
|
|
FromSuperBrain::~FromSuperBrain()
|
|
@@ -26,10 +28,12 @@ FromSuperBrain::~FromSuperBrain()
|
|
bool FromSuperBrain::getToken()
|
|
bool FromSuperBrain::getToken()
|
|
{
|
|
{
|
|
std::string response;
|
|
std::string response;
|
|
- std::string httpBody = R"({"appSecret":"8zR9ug4WbKCtEgaQ08myRm5HqKIMwP83Ra24t921tO/mU0cTIFdm/t0C9Jxrd53x","appKey":"rili4l26"})";
|
|
|
|
|
|
+ std::string httpBody = R"({"appSecret":"Setyir9yxvSiFGB/wsv4YHWiNmrgeaZhzJKi7c7Gmk04Z5Kd/hCifL+0WnfCRDJF","appKey":"x1pcq13r"})";
|
|
std::vector<std::string> vecHeader;
|
|
std::vector<std::string> vecHeader;
|
|
vecHeader.push_back("Content-Type: application/json");
|
|
vecHeader.push_back("Content-Type: application/json");
|
|
std::string url = m_url + m_tokenPath;
|
|
std::string url = m_url + m_tokenPath;
|
|
|
|
+ SPDLOG_LOGGER_DEBUG(m_logger, "url:{}", url);
|
|
|
|
+ SPDLOG_LOGGER_DEBUG(m_logger, "httpBody:{}", httpBody);
|
|
if(!CurlHttp::Post(url, vecHeader, httpBody, response))
|
|
if(!CurlHttp::Post(url, vecHeader, httpBody, response))
|
|
{
|
|
{
|
|
SPDLOG_LOGGER_ERROR(m_logger, "Get Token failed");
|
|
SPDLOG_LOGGER_ERROR(m_logger, "Get Token failed");
|