|
|
@@ -83,6 +83,7 @@ bool CLewaimaiHttpClient::Login(std::string& errmsg)
|
|
|
|
|
|
//店铺ID默认为0
|
|
|
m_client.m_shop_id = "0";
|
|
|
+ m_client.m_shop_ids = "";
|
|
|
|
|
|
rapidjson::Value& v_rows = data["shop_ids"];
|
|
|
|
|
|
@@ -165,14 +166,14 @@ bool CLewaimaiHttpClient::Request(std::string url, std::map<string, string> para
|
|
|
CHttpClient m_httpClient;
|
|
|
int ret = m_httpClient.Posts(m_client.m_url + url, postString, response, NULL);
|
|
|
|
|
|
- LOG_INFO("response:" << response.c_str());
|
|
|
-
|
|
|
- a++;
|
|
|
+ if (url == "/goodstype/getlist")
|
|
|
+ {
|
|
|
+ LOG_INFO("response:" << response.c_str());
|
|
|
+ }
|
|
|
|
|
|
if (ret == 0)
|
|
|
{
|
|
|
//ret为0表示没有出错
|
|
|
- int b = a;
|
|
|
return true;
|
|
|
}
|
|
|
else
|
|
|
@@ -181,8 +182,6 @@ bool CLewaimaiHttpClient::Request(std::string url, std::map<string, string> para
|
|
|
LOG_INFO("request error, ret value:" << ret);
|
|
|
}
|
|
|
|
|
|
- int b = a;
|
|
|
-
|
|
|
return false;
|
|
|
}
|
|
|
|