mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-04-03 20:20:55 +08:00
防止getPlayerList返回的json数据为null
This commit is contained in:
@@ -752,6 +752,7 @@ void installWebApi() {
|
||||
[=](const std::list<std::shared_ptr<void>> &info_list) mutable {
|
||||
val["code"] = API::Success;
|
||||
auto &data = val["data"];
|
||||
data = Value(arrayValue);
|
||||
for (auto &info : info_list) {
|
||||
auto obj = static_pointer_cast<Value>(info);
|
||||
data.append(std::move(*obj));
|
||||
|
||||
Reference in New Issue
Block a user