Skip to content

Commit 2704976

Browse files
committed
modify:match xengine v7.48
1 parent a2a2b86 commit 2704976

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

XEngine_Source/StorageModule_Database/Database_File/Database_File.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ BOOL CDatabase_File::Database_File_FileQuery(XSTORAGECORE_DBFILE*** pppSt_ListFi
265265
return FALSE;
266266
}
267267
//查询
268-
XHDATA xhTable = 0;
268+
XNETHANDLE xhTable = 0;
269269
__int64u nllLine = 0;
270270
__int64u nllRow = 0;
271271
list<XSTORAGECORE_DBFILE> stl_ListFile;

XEngine_Source/StorageModule_Database/Database_File/Database_File.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CDatabase_File
3131
private:
3232
BOOL bIsRun;
3333
int m_nTimeMonth;
34-
XHDATA xhDBSQL;
34+
XNETHANDLE xhDBSQL;
3535
private:
3636
shared_ptr<std::thread> pSTDThread;
3737
};

XEngine_Source/XEngine_StorageApp/StorageApp_Center.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ BOOL XEngine_Task_HttpCenter(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, int
8383
TCHAR* ptszBody = NULL;
8484

8585
Protocol_StoragePacket_BasicAuth(pSt_HTTPParam->tszHttpMethod, pSt_HTTPParam->tszHttpUri, lpszClientAddr, tszUserName, tszUserPass, tszSDBuffer, &nSDLen);
86-
APIHelp_HttpRequest_Custom(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyAuth.tszAuthProxy, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
86+
APIClient_Http_Request(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyAuth.tszAuthProxy, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
8787
if (200 != nResponseCode)
8888
{
8989
st_HDRParam.bIsClose = TRUE;

XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void CALLBACK XEngine_Download_CBSend(LPCSTR lpszClientAddr, SOCKET hSocket, LPV
7979

8080
Session_DLStroage_GetInfo(lpszClientAddr, &st_StorageInfo);
8181
Protocol_StoragePacket_UPDown(tszProxyStr, &nPLen, st_StorageInfo.tszFileDir, st_StorageInfo.tszBuckKey, st_StorageInfo.tszClientAddr, st_StorageInfo.ullRWCount, TRUE, st_StorageInfo.tszFileHash);
82-
if (APIHelp_HttpRequest_Custom(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyPass.tszDLPass, tszProxyStr, &nHttpCode))
82+
if (APIClient_Http_Request(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyPass.tszDLPass, tszProxyStr, &nHttpCode))
8383
{
8484
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _T("下载客户端:%s,请求完成通知返回值:%d,文件:%s,地址:%s"), lpszClientAddr, nHttpCode, st_StorageInfo.tszFileDir, st_ServiceCfg.st_XProxy.st_XProxyPass.tszDLPass);
8585
}
@@ -168,7 +168,7 @@ BOOL XEngine_Task_HttpDownload(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
168168
TCHAR* ptszBody = NULL;
169169

170170
Protocol_StoragePacket_BasicAuth(pSt_HTTPParam->tszHttpMethod, pSt_HTTPParam->tszHttpUri, lpszClientAddr, tszUserName, tszUserPass, tszSDBuffer, &nSDLen);
171-
APIHelp_HttpRequest_Custom(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyAuth.tszAuthProxy, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
171+
APIClient_Http_Request(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyAuth.tszAuthProxy, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
172172
if (200 != nResponseCode)
173173
{
174174
st_HDRParam.bIsClose = TRUE;

XEngine_Source/XEngine_StorageApp/StorageApp_Hdr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ using namespace std;
4040
#include <XEngine_Include/XEngine_HelpComponents/Packets_Error.h>
4141
#include <XEngine_Include/XEngine_RfcComponents/HttpServer_Define.h>
4242
#include <XEngine_Include/XEngine_RfcComponents/HttpServer_Error.h>
43-
#include <XEngine_Include/XEngine_NetHelp/APIHelp_Define.h>
44-
#include <XEngine_Include/XEngine_NetHelp/APIHelp_Error.h>
43+
#include <XEngine_Include/XEngine_NetHelp/APIClient_Define.h>
44+
#include <XEngine_Include/XEngine_NetHelp/APIClient_Error.h>
4545
#include <XEngine_Include/XEngine_SystemSdk/ProcFile_Define.h>
4646
#include <XEngine_Include/XEngine_SystemSdk/ProcFile_Error.h>
4747
#include <XEngine_Include/XEngine_SystemSdk/SystemApi_Define.h>
@@ -114,7 +114,7 @@ extern XENGINE_LBCONFIG st_LoadbalanceCfg;
114114
#pragma comment(lib,"XEngine_HelpComponents/HelpComponents_XLog.lib")
115115
#pragma comment(lib,"XEngine_HelpComponents/HelpComponents_Packets.lib")
116116
#pragma comment(lib,"XEngine_RfcComponents/RfcComponents_HttpServer.lib")
117-
#pragma comment(lib,"XEngine_NetHelp/NetHelp_APIHelp.lib")
117+
#pragma comment(lib,"XEngine_NetHelp/NetHelp_APIClient.lib")
118118
#pragma comment(lib,"XEngine_SystemSdk/XEngine_SystemApi.lib")
119119
#ifdef _WIN64
120120
#ifdef _DEBUG

XEngine_Source/XEngine_StorageApp/StorageApp_UPLoader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ BOOL XEngine_Task_HttpUPLoader(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
8888
TCHAR* ptszBody = NULL;
8989

9090
Protocol_StoragePacket_BasicAuth(pSt_HTTPParam->tszHttpMethod, pSt_HTTPParam->tszHttpUri, lpszClientAddr, tszUserName, tszUserPass, tszSDBuffer, &nSDLen);
91-
APIHelp_HttpRequest_Custom(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyAuth.tszAuthProxy, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
91+
APIClient_Http_Request(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyAuth.tszAuthProxy, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
9292
if (200 != nResponseCode)
9393
{
9494
st_HDRParam.bIsClose = TRUE;
@@ -322,7 +322,7 @@ BOOL XEngine_Task_HttpUPLoader(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
322322
if (st_ServiceCfg.st_XProxy.st_XProxyPass.bUPPass)
323323
{
324324
int nHttpCode = 0;
325-
if (APIHelp_HttpRequest_Custom(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyPass.tszUPPass, tszPassNotify, &nHttpCode))
325+
if (APIClient_Http_Request(_T("POST"), st_ServiceCfg.st_XProxy.st_XProxyPass.tszUPPass, tszPassNotify, &nHttpCode))
326326
{
327327
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _T("上传客户端:%s,请求完成通知返回值:%d,文件:%s,地址:%s"), lpszClientAddr, nHttpCode, st_StorageInfo.tszFileDir, st_ServiceCfg.st_XProxy.st_XProxyPass.tszUPPass);
328328
}

XEngine_Source/XEngine_StorageApp/XEngine_StorageApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ int main(int argc, char** argv)
137137
memset(tszAddr, '\0', sizeof(tszAddr));
138138

139139
_stprintf(tszAddr, _T("Http://127.0.0.1:%d/Api/Manage/Config"), st_ServiceCfg.nCenterPort);
140-
APIHelp_HttpRequest_Custom(_T("POST"), tszAddr);
140+
APIClient_Http_Request(_T("POST"), tszAddr);
141141
return 0;
142142
}
143143
st_XLogConfig.XLog_MaxBackupFile = st_ServiceCfg.st_XLog.nMaxCount;

0 commit comments

Comments
 (0)