From c4632bcfad4ad01530fed876ac88890642c9c43e Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 7 Apr 2025 11:35:17 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9A=E6=B7=BB=E5=8A=A0=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E6=9C=AC=E5=9C=B0=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8Get=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/client/client.cpp b/client/client.cpp index 0bc3e74..0711e71 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -69,10 +69,17 @@ void CClient::run(const std::string& ip, const std::string& port, const std::str std::thread thread([&]() { io_context_.run(); }); th_down_active_ = std::thread([&]() { judget_down_active(); }); - auto* bf = new CFrameBuffer(); - bf->type_ = TYPE_GET_ID; - send_frame(bf); - delete bf; + { + auto* bf = new CFrameBuffer(); + bf->type_ = TYPE_GET_ID; + send_frame(bf); + delete bf; + } + + if (ip == "127.0.0.1") { + get_task_list(); + } + TLOGI("version: {}", VERSION_NUM); TLOGI("opensource: {}", VERSION_URL); TLOGW("SupportCmd ==>");