|
|
@@ -160,14 +160,19 @@ bool CLewaimaiHttpClient::Request(std::string url, std::map<string, string> para
|
|
|
|
|
|
//LOG_INFO("postString:" << postString.c_str());
|
|
|
|
|
|
+ int a = 0;
|
|
|
+
|
|
|
CHttpClient m_httpClient;
|
|
|
int ret = m_httpClient.Posts(m_client.m_url + url, postString, response, NULL);
|
|
|
|
|
|
- //LOG_INFO("response:" << response.c_str());
|
|
|
+ LOG_INFO("response:" << response.c_str());
|
|
|
+
|
|
|
+ a++;
|
|
|
|
|
|
if (ret == 0)
|
|
|
{
|
|
|
//ret为0表示没有出错
|
|
|
+ int b = a;
|
|
|
return true;
|
|
|
}
|
|
|
else
|
|
|
@@ -176,6 +181,8 @@ bool CLewaimaiHttpClient::Request(std::string url, std::map<string, string> para
|
|
|
LOG_INFO("request error, ret value:" << ret);
|
|
|
}
|
|
|
|
|
|
+ int b = a;
|
|
|
+
|
|
|
return false;
|
|
|
}
|
|
|
|