Commit 93ab85c3 by 李维杰

修改配置信息

parent 5d34b8b7
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
#include "../thirdparty/curl/http_request.h" #include "../thirdparty/curl/http_request.h"
void printf_help()
{
std::cout << "Enter room's password:";
}
int main() int main()
{ {
bool ret = HttpRequest::Init(); bool ret = HttpRequest::Init();
...@@ -15,7 +20,7 @@ int main() ...@@ -15,7 +20,7 @@ int main()
} }
std::cout << "webserver address:" << HttpRequest::GetWebServerUrl() << std::endl; std::cout << "webserver address:" << HttpRequest::GetWebServerUrl() << std::endl;
std::cout << "please input password:"; printf_help();
std::string keyword; std::string keyword;
std::string token; std::string token;
...@@ -38,7 +43,7 @@ int main() ...@@ -38,7 +43,7 @@ int main()
} }
std::cout << std::endl; std::cout << std::endl;
std::cout << "<----------------------------------------------------------------------" << std::endl; std::cout << "<------------------------------------------------------------------------------------------------------------------------" << std::endl;
if (!HttpRequest::LogIn("offcn-live", keyword, token, roomid)) if (!HttpRequest::LogIn("offcn-live", keyword, token, roomid))
{ {
...@@ -81,11 +86,11 @@ int main() ...@@ -81,11 +86,11 @@ int main()
} }
} }
} }
std::cout << "---------------------------------------------------------------------->" << std::endl; std::cout << "------------------------------------------------------------------------------------------------------------------------>" << std::endl;
keyword = ""; keyword = "";
std::cout << std::endl << std::endl; std::cout << std::endl << std::endl;
std::cout << "please input password:"; printf_help();
} }
return 0; return 0;
} }
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<UseDebugLibraries>true</UseDebugLibraries> <UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset> <PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet> <CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Static</UseOfMfc>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType> <ConfigurationType>Application</ConfigurationType>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment