|  | @@ -417,6 +417,7 @@ SATHTTP_API int Heartbeat(std::string url, const SATHTTP::STHeartbeatReq &stHear
 | 
	
		
			
				|  |  |  						cJSON *pObj = cJSON_GetObjectItem(pMsg, "data");
 | 
	
		
			
				|  |  |  						if (pObj != NULL)
 | 
	
		
			
				|  |  |  						{							
 | 
	
		
			
				|  |  | +							GLOBAL::WriteTextLog("<======heartbeat json======> \r 请求内容:%s \r返回内容:%s", post_data.c_str(), reponse.c_str());
 | 
	
		
			
				|  |  |  							int nSise = cJSON_GetArraySize(pObj);
 | 
	
		
			
				|  |  |  							for ( int i = 0; i < nSise; i++ )
 | 
	
		
			
				|  |  |  							{
 | 
	
	
		
			
				|  | @@ -866,6 +867,7 @@ SATHTTP_API int DownloadScript(std::string url, std::string strCaseId, std::stri
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	char *pText = cJSON_Print(pRoot);
 | 
	
		
			
				|  |  |  	std::string post_data = "requestMsg=";
 | 
	
		
			
				|  |  | +	GLOBAL::WriteTextLog("<======下载请求======> \r 请求内容:%s %s", url.c_str(), post_data.c_str());
 | 
	
		
			
				|  |  |  	post_data.append(CharEncoding::EnCode_UTF8URL(pText));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	// 释放堆内存;
 | 
	
	
		
			
				|  | @@ -919,7 +921,8 @@ SATHTTP_API int DownloadScript(std::string url, std::string strCaseId, std::stri
 | 
	
		
			
				|  |  |  										// 创建目录;
 | 
	
		
			
				|  |  |  										if ( MKDIR(strSaveDir.c_str()) ) {
 | 
	
		
			
				|  |  |  											// 同时下载脚本目录到指定目录中;// url地址可能包含中文,此处需要转码;
 | 
	
		
			
				|  |  | -											stScriptUrlResp.strURL = CCurlClient::ParseURLAndEncode(stScriptUrlResp.strURL);											
 | 
	
		
			
				|  |  | +											stScriptUrlResp.strURL = CCurlClient::ParseURLAndEncode(stScriptUrlResp.strURL);
 | 
	
		
			
				|  |  | +											GLOBAL::WriteTextLog("<======下载文件======> \r 文件地址:%s,保存路径:%s ", stScriptUrlResp.strURL.c_str(), strSaveDir.c_str());
 | 
	
		
			
				|  |  |  											if ( g_curl.Download(stScriptUrlResp.strURL, strSaveDir, 20000) ) {
 | 
	
		
			
				|  |  |  												stScriptUrlResp._strFileName = strFileName.substr(0, strFileName.find_last_of('.'));
 | 
	
		
			
				|  |  |  												stScriptUrlResp._strScripFile = strSaveDir;
 |