Skip to content

Commit

Permalink
修改ac_id,更新网络连通性检测网址
Browse files Browse the repository at this point in the history
  • Loading branch information
diylxy committed Oct 11, 2024
1 parent 3b9e853 commit 8f038ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ char username[100] = "";
char password[100] = "";
char local_ip[100] = "";
///////////////////////////
const char ac_id[] = "23";
const char ac_id[] = "1";
const char type[] = "1";
const char n[] = "200";
///////////////////////////
Expand Down Expand Up @@ -89,6 +89,7 @@ bool authenticate()
{
if (res->status == 200)
{
puts(res->body.c_str());
if (strstr(res->body.c_str(), "login_ok"))
{
printf("Login success\n");
Expand Down Expand Up @@ -137,7 +138,7 @@ void getIPByIFace()

bool connectivityTest()
{
httplib::Client cli("http://test.ipw.cn");
httplib::Client cli("http://4.ipw.cn");
auto res = cli.Get("/");
if (res)
{
Expand Down

0 comments on commit 8f038ab

Please sign in to comment.