From 38170c702e06754c10522d07e3ef0e65669f0d11 Mon Sep 17 00:00:00 2001 From: custompal <1040801756@qq.com> Date: Thu, 1 Sep 2022 17:33:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3gcc4.8=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 4546657d..83409998 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -753,14 +753,14 @@ void installWebApi() { val["code"] = API::Success; auto &data = val["data"]; for (auto &info : info_list) { - auto obj = reinterpret_pointer_cast(info); + auto obj = static_pointer_cast(info); data.append(std::move(*obj)); } invoker(200, headerOut, val.toStyledString()); }, [](std::shared_ptr &&info) -> std::shared_ptr { auto obj = std::make_shared(); - auto session = reinterpret_pointer_cast(info); + auto session = static_pointer_cast(info); (*obj)["peer_ip"] = session->get_peer_ip(); (*obj)["peer_port"] = session->get_peer_port(); return obj;