File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
XEngine_Apps/Authorize_ClientModule Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments