Skip to content

Commit 9908e8f

Browse files
committed
fixed:build error
1 parent 5af32c6 commit 9908e8f

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

XEngine_APPClient/APPClient_BankExample/APPClient_BankExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main()
3131
TCHAR* ptszMsgBuffer = NULL;
3232
LPCTSTR lpszUrl = _T("http://127.0.0.1:5501/api?function=bank&params1=6214111100184841&params2=0");
3333

34-
if (!APIHelp_HttpRequest_Get(lpszUrl, &ptszMsgBuffer, &nLen))
34+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
3535
{
3636
printf("发送投递失败!\n");
3737
return 0;

XEngine_APPClient/APPClient_CDKeyExample/APPClient_CDKeyExample.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int main()
6363

6464
TCHAR* ptszCreateBuffer = NULL;
6565
TCHAR* ptszAuthBuffer = NULL;
66-
if (!APIHelp_HttpRequest_Post(lpszCreateUrl, st_JsonRoot.toStyledString().c_str(), &nCode, &ptszCreateBuffer, &nLen))
66+
if (!APIHelp_HttpRequest_Custom(_T("POST"), lpszCreateUrl, st_JsonRoot.toStyledString().c_str(), &nCode, &ptszCreateBuffer, &nLen))
6767
{
6868
printf("发送投递失败!\n");
6969
return 0;
@@ -77,7 +77,7 @@ int main()
7777
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszCreateBuffer);
7878

7979
LPCTSTR lpszAuthUrl = _T("http://127.0.0.1:5501/api?function=cdkey&params1=1&params2=123123");
80-
if (!APIHelp_HttpRequest_Post(lpszAuthUrl, tszMsgBuffer, &nCode, &ptszAuthBuffer, &nLen))
80+
if (!APIHelp_HttpRequest_Custom(_T("POST"), lpszAuthUrl, tszMsgBuffer, &nCode, &ptszAuthBuffer, &nLen))
8181
{
8282
printf("发送投递失败!\n");
8383
return 0;

XEngine_APPClient/APPClient_IDExample/APPClient_IDExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main()
3131
TCHAR* ptszMsgBuffer = NULL;
3232
LPCTSTR lpszUrl = _T("http://127.0.0.1:5501/api?function=id&params1=511025191101018792&params2=0");
3333

34-
if (!APIHelp_HttpRequest_Get(lpszUrl, &ptszMsgBuffer, &nLen))
34+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
3535
{
3636
printf("发送投递失败!\n");
3737
return 0;

XEngine_APPClient/APPClient_IPExample/APPClient_IPExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main()
3131
TCHAR* ptszMsgBuffer = NULL;
3232
LPCTSTR lpszUrl = _T("http://127.0.0.1:5501/api?function=ip&params1=1.29.164.255&params2=0");
3333

34-
if (!APIHelp_HttpRequest_Get(lpszUrl, &ptszMsgBuffer, &nLen))
34+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
3535
{
3636
printf("发送投递失败!\n");
3737
return 0;

XEngine_APPClient/APPClient_LanguageExample/APPClient_LanguageExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main()
3131
TCHAR* ptszMsgBuffer = NULL;
3232
LPCTSTR lpszUrl = _T("http://127.0.0.1:5501/api?function=language&params1=简体&params2=0&param3=1");
3333

34-
if (!APIHelp_HttpRequest_Get(lpszUrl, &ptszMsgBuffer, &nLen))
34+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
3535
{
3636
printf("发送投递失败!\n");
3737
return 0;

XEngine_APPClient/APPClient_LockExample/APPClient_LockExample.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main()
3131
LPCTSTR lpszOPenUrl = _T("http://127.0.0.1:5501/api?function=lock&params1=1000106561&params1=1");
3232
//自己创建打开
3333
TCHAR* ptszBuffer = NULL;
34-
if (!APIHelp_HttpRequest_Get(lpszOPenUrl, &ptszBuffer, &nLen))
34+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszOPenUrl, NULL, NULL, &ptszBuffer, &nLen))
3535
{
3636
printf("发送投递失败!\n");
3737
return 0;
@@ -40,7 +40,7 @@ int main()
4040
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszBuffer);
4141
//打开读锁
4242
LPCTSTR lpszReadUrl = _T("http://127.0.0.1:5501/api?function=lock&params1=1000106561&params2=3");
43-
if (!APIHelp_HttpRequest_Get(lpszReadUrl, &ptszBuffer, &nLen))
43+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszReadUrl, NULL, NULL, &ptszBuffer, &nLen))
4444
{
4545
printf("发送投递失败!\n");
4646
return 0;
@@ -49,7 +49,7 @@ int main()
4949
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszBuffer);
5050
//打开写锁
5151
LPCTSTR lpszWriteUrl = _T("http://127.0.0.1:5501/api?function=lock&params1=1000106561&params2=5");
52-
if (!APIHelp_HttpRequest_Get(lpszWriteUrl, &ptszBuffer, &nLen))
52+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszWriteUrl, NULL, NULL, &ptszBuffer, &nLen))
5353
{
5454
printf("发送投递失败!\n");
5555
return 0;
@@ -58,15 +58,15 @@ int main()
5858
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszBuffer);
5959
//释放读锁
6060
LPCTSTR lpszUNReadUrl = _T("http://127.0.0.1:5501/api?function=lock&params1=1000106561&params2=4");
61-
if (!APIHelp_HttpRequest_Get(lpszUNReadUrl, &ptszBuffer, &nLen))
61+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszUNReadUrl, NULL, NULL, &ptszBuffer, &nLen))
6262
{
6363
printf("发送投递失败!\n");
6464
return 0;
6565
}
6666
printf("接受到数据,大小:%d,内容:\n%s\n", nLen, ptszBuffer);
6767
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszBuffer);
6868
//打开解锁
69-
if (!APIHelp_HttpRequest_Get(lpszWriteUrl, &ptszBuffer, &nLen))
69+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszWriteUrl, NULL, NULL, &ptszBuffer, &nLen))
7070
{
7171
printf("发送投递失败!\n");
7272
return 0;
@@ -75,7 +75,7 @@ int main()
7575
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszBuffer);
7676
//关闭
7777
LPCTSTR lpszCloseUrl = _T("http://127.0.0.1:5501/api?function=lock&params1=1000106561&params2=2");
78-
if (!APIHelp_HttpRequest_Get(lpszCloseUrl, &ptszBuffer, &nLen))
78+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszCloseUrl, NULL, NULL, &ptszBuffer, &nLen))
7979
{
8080
printf("发送投递失败!\n");
8181
return 0;

XEngine_APPClient/APPClient_P2PExample/APPClient_P2PExample.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int APPClient_P2XPLogin()
6767
int nMsgLen = 0;
6868
int nHTTPCode = 0;
6969
TCHAR* ptszMsgBuffer = NULL;
70-
if (!APIHelp_HttpRequest_Post(lpszAddr, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBuffer, &nMsgLen))
70+
if (!APIHelp_HttpRequest_Custom(_T("POST"), lpszAddr, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBuffer, &nMsgLen))
7171
{
7272
return -1;
7373
}
@@ -88,7 +88,7 @@ int APPClient_P2XPList()
8888
int nMsgLen = 0;
8989
int nHTTPCode = 0;
9090
TCHAR* ptszMsgBuffer = NULL;
91-
if (!APIHelp_HttpRequest_Post(lpszAddr, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBuffer, &nMsgLen))
91+
if (!APIHelp_HttpRequest_Custom(_T("POST"), lpszAddr, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBuffer, &nMsgLen))
9292
{
9393
return -1;
9494
}
@@ -109,7 +109,7 @@ int APPClient_P2XPGetUser()
109109
int nMsgLen = 0;
110110
int nHTTPCode = 0;
111111
TCHAR* ptszMsgBuffer = NULL;
112-
if (!APIHelp_HttpRequest_Post(lpszAddr, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBuffer, &nMsgLen))
112+
if (!APIHelp_HttpRequest_Custom(_T("POST"), lpszAddr, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBuffer, &nMsgLen))
113113
{
114114
return -1;
115115
}
@@ -130,7 +130,7 @@ int APPClient_P2XPConnect()
130130
int nMsgLen = 0;
131131
int nHTTPCode = 0;
132132
TCHAR* ptszMsgBuffer = NULL;
133-
if (!APIHelp_HttpRequest_Post(lpszAddr, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBuffer, &nMsgLen))
133+
if (!APIHelp_HttpRequest_Custom(_T("POST"), lpszAddr, st_JsonRoot.toStyledString().c_str(), &nHTTPCode, &ptszMsgBuffer, &nMsgLen))
134134
{
135135
return -1;
136136
}

XEngine_APPClient/APPClient_PhoneExample/APPClient_PhoneExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main()
3131
TCHAR* ptszMsgBuffer = NULL;
3232
LPCTSTR lpszUrl = _T("http://127.0.0.1:5501/api?function=phone&params1=13699438888&params2=0");
3333

34-
if (!APIHelp_HttpRequest_Get(lpszUrl, &ptszMsgBuffer, &nLen))
34+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
3535
{
3636
printf("发送投递失败!\n");
3737
return 0;

XEngine_APPClient/APPClient_PluginExample/APPClient_PluginExample.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main()
3030
int nLen = 0;
3131
TCHAR* ptszMsgBuffer = NULL;
3232
LPCTSTR lpszPassUrl = _T("http://127.0.0.1:5501/api?function=pass&params1=1&params2=4");
33-
if (!APIHelp_HttpRequest_Get(lpszPassUrl, &ptszMsgBuffer, &nLen))
33+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszPassUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
3434
{
3535
printf("发送投递失败!\n");
3636
return 0;
@@ -39,7 +39,7 @@ int main()
3939
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszMsgBuffer);
4040

4141
LPCTSTR lpszZodiacUrl = _T("http://127.0.0.1:5501/api?function=zodiac&params1=19880121");
42-
if (!APIHelp_HttpRequest_Get(lpszZodiacUrl, &ptszMsgBuffer, &nLen))
42+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszZodiacUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
4343
{
4444
printf("发送投递失败!\n");
4545
return 0;
@@ -48,7 +48,7 @@ int main()
4848
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszMsgBuffer);
4949

5050
LPCTSTR lpszTimeUrl = _T("http://127.0.0.1:5501/api?function=timezone&params1=1&params2=1-20");
51-
if (!APIHelp_HttpRequest_Get(lpszTimeUrl, &ptszMsgBuffer, &nLen))
51+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszTimeUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
5252
{
5353
printf("发送投递失败!\n");
5454
return 0;
@@ -57,7 +57,7 @@ int main()
5757
BaseLib_OperatorMemory_FreeCStyle((XPPMEM)&ptszMsgBuffer);
5858

5959
LPCTSTR lpszBmiUrl = _T("http://127.0.0.1:5501/api?function=bmindex&params1=1.78&params2=62");
60-
if (!APIHelp_HttpRequest_Get(lpszBmiUrl, &ptszMsgBuffer, &nLen))
60+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszBmiUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
6161
{
6262
printf("发送投递失败!\n");
6363
return 0;

XEngine_APPClient/APPClient_TranslationExample/APPClient_TranslationExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main()
3131
TCHAR* ptszMsgBuffer = NULL;
3232
LPCTSTR lpszUrl = _T("http://127.0.0.1:5501/api?function=translation&params1=中国&params2=0&param3=0");
3333

34-
if (!APIHelp_HttpRequest_Get(lpszUrl, &ptszMsgBuffer, &nLen))
34+
if (!APIHelp_HttpRequest_Custom(_T("GET"), lpszUrl, NULL, NULL, &ptszMsgBuffer, &nLen))
3535
{
3636
printf("发送投递失败!\n");
3737
return 0;

0 commit comments

Comments
 (0)