From 8f038ab0ae71b25e16e8688f0eb99d80024d8729 Mon Sep 17 00:00:00 2001 From: lxydiy <1452206376@qq.com> Date: Fri, 11 Oct 2024 13:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ac=5Fid=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=BD=91=E7=BB=9C=E8=BF=9E=E9=80=9A=E6=80=A7=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E7=BD=91=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 60041a4..f4b7bdd 100644 --- a/main.cpp +++ b/main.cpp @@ -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"; /////////////////////////// @@ -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"); @@ -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) {