From d0214a13e1a953c2ff2036635b671dcd42a80581 Mon Sep 17 00:00:00 2001 From: custompal <1040801756@qq.com> Date: Thu, 1 Sep 2022 17:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2getPlayerList=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84json=E6=95=B0=E6=8D=AE=E4=B8=BAnull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 83409998..78706e4d 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -752,6 +752,7 @@ void installWebApi() { [=](const std::list> &info_list) mutable { val["code"] = API::Success; auto &data = val["data"]; + data = Value(arrayValue); for (auto &info : info_list) { auto obj = static_pointer_cast(info); data.append(std::move(*obj));