Skip to content

Commit 055db5a

Browse files
committed
added:x verification timeout support
1 parent 207abe8 commit 055db5a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

XEngine_Module/XEngine_PluginExtension/pch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ extern XLONG PluginExtension_dwErrorCode;
5353

5454
#ifdef _MSC_BUILD
5555
#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib")
56-
5756
#define XFreeModule FreeLibrary
5857
#else
5958
#define XFreeModule dlclose

XEngine_Module/XEngine_Verification/Verification_XAuth/Verification_XAuthNet.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -918,9 +918,11 @@ bool CVerification_XAuthNet::Verification_XAuthNet_HTTPRequest(LPCXSTR lpszURLAd
918918
//请求
919919
int nHTTPLen = *pInt_MSGLen;
920920
XCHAR* ptszHTTPBuffer = NULL;
921+
XCLIENT_APIHTTP st_HTTPParam = {};
922+
st_HTTPParam.nTimeOperator = 3000;
921923
if (NULL == lpszMSGBuffer)
922924
{
923-
if (!APIClient_Http_Request(_X("GET"), lpszURLAddr, NULL, &nHTTPCode, &ptszHTTPBuffer, &nHTTPLen))
925+
if (!APIClient_Http_Request(_X("GET"), lpszURLAddr, NULL, &nHTTPCode, &ptszHTTPBuffer, &nHTTPLen, NULL, NULL, &st_HTTPParam))
924926
{
925927
Verification_IsErrorOccur = true;
926928
Verification_dwErrorCode = APIClient_GetLastError();
@@ -931,7 +933,7 @@ bool CVerification_XAuthNet::Verification_XAuthNet_HTTPRequest(LPCXSTR lpszURLAd
931933
{
932934
if (NULL == lpszPassword)
933935
{
934-
if (!APIClient_Http_Request(_X("POST"), lpszURLAddr, lpszMSGBuffer, &nHTTPCode, &ptszHTTPBuffer, &nHTTPLen, lpszCustomHdr))
936+
if (!APIClient_Http_Request(_X("POST"), lpszURLAddr, lpszMSGBuffer, &nHTTPCode, &ptszHTTPBuffer, &nHTTPLen, lpszCustomHdr, NULL, &st_HTTPParam))
935937
{
936938
Verification_IsErrorOccur = true;
937939
Verification_dwErrorCode = APIClient_GetLastError();
@@ -948,7 +950,7 @@ bool CVerification_XAuthNet::Verification_XAuthNet_HTTPRequest(LPCXSTR lpszURLAd
948950
BaseLib_Memory_FreeCStyle((XPPMEM)&ptszHTTPBuffer);
949951
return false;
950952
}
951-
if (!APIClient_Http_Request(_X("POST"), lpszURLAddr, tszENCodec, &nHTTPCode, &ptszHTTPBuffer, &nHTTPLen, lpszCustomHdr))
953+
if (!APIClient_Http_Request(_X("POST"), lpszURLAddr, tszENCodec, &nHTTPCode, &ptszHTTPBuffer, &nHTTPLen, lpszCustomHdr, NULL, &st_HTTPParam))
952954
{
953955
Verification_IsErrorOccur = true;
954956
Verification_dwErrorCode = APIClient_GetLastError();

0 commit comments

Comments
 (0)