Selaa lähdekoodia

https代替http

Jeff 5 vuotta sitten
vanhempi
commit
d17273fabd
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      scbc.tools/scbc.tools/SDK.cpp

+ 4 - 4
scbc.tools/scbc.tools/SDK.cpp

@@ -215,7 +215,7 @@ int CSDK::ReportKeyCopyResults(std::string sn)
 		form.insert(std::pair<std::string,std::string>("date", keys.copy_date));
 		CCurlClient curl;
 		curl.Initialize();
-		if ( curl.FormPost(_host + "/reportlist.do?", form, result,3) == CURLE_OK)
+		if ( curl.FormPosts(_host + "/reportlist.do?", form, result,3) == CURLE_OK)
 		{
 			cJSON *pJson = cJSON_Parse(result.c_str());
 			if ( pJson == NULL )
@@ -273,7 +273,7 @@ int CSDK::BatchReportKeyCopyResults()
 
 	CCurlClient curl;
 	curl.Initialize();
-	if ( curl.FormPost(_host + "/reportlist.do?", form, result,3) == CURLE_OK)
+	if ( curl.FormPosts(_host + "/reportlist.do?", form, result,3) == CURLE_OK)
 	{
 		cJSON *pJson = cJSON_Parse(result.c_str());
 		if ( pJson == NULL )
@@ -379,7 +379,7 @@ int CSDK::GetMidInfo(std::string order, STMid &mid)
 	//content.append(Global::g_strMacs);
 	CCurlClient curl;
 	curl.Initialize();
-	if ( (nRet = curl.Post(url, content, result)) == CURLE_OK)
+	if ( (nRet = curl.Posts(url, content, result)) == CURLE_OK)
 	{
 		// ½âÎöjson×Ö·û´®;
 		cJSON *pJson = cJSON_Parse(result.c_str());
@@ -537,7 +537,7 @@ int CSDK::ReportDownloadStatus(std::string order)
 	int nRet = 0;
 	CCurlClient curl;
 	curl.Initialize();
-	if ( ( nRet = curl.Post(url, content, result)) == CURLE_OK)
+	if ( ( nRet = curl.Posts(url, content, result)) == CURLE_OK)
 	{
 		// ½âÎöjson×Ö·û´®;
 		cJSON *pJson = cJSON_Parse(result.c_str());