add:添加链接本地服务器时自动Get。

This commit is contained in:
taynpg 2025-04-07 11:35:17 +08:00
parent 6cff24fd13
commit c4632bcfad

View File

@ -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 ==>");