Skip to content

Commit ad324f6

Browse files
committed
update:client module example
1 parent 64e2859 commit ad324f6

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

XEngine_Apps/Authorize_ClientModule/Authorize_ClientModule.cpp

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,24 @@ using namespace std;
2121
//Windows::vs2022 x86 debug 编译即可
2222
//Linux MACOS::g++ -std=c++17 -Wall -g Authorize_ClientModule.cpp -o Authorize_ClientModule.exe -L ../../XEngine_Release/ -lAuthorizeModule_Client -ljsoncpp -Wl,-rpath=../../XEngine_Release
2323

24-
int main()
24+
int TestClient_HardLogin()
25+
{
26+
if (!AuthClient_Connector_Connect(_X("127.0.0.1"), 5300))
27+
{
28+
printf("AuthClient_Connector_Connect:%lX\n", AuthClient_GetLastError());
29+
return -1;
30+
}
31+
if (!AuthClient_Connector_Login("2FDWAD02JD2091", ""))
32+
{
33+
printf("AuthClient_Connector_Login:%lX\n", AuthClient_GetLastError());
34+
return -1;
35+
}
36+
37+
AuthClient_Connector_Close();
38+
return 0;
39+
}
40+
41+
int TestClient_TryLogin()
2542
{
2643
//插入查询
2744
LPCXSTR lpszTryInsert = _X("http://127.0.0.1:5302/auth/user/try");
@@ -35,4 +52,9 @@ int main()
3552
printf("failed\n");
3653
}
3754
return 0;
55+
}
56+
int main()
57+
{
58+
TestClient_TryLogin();
59+
return 0;
3860
}

0 commit comments

Comments
 (0)