mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
防止getPlayerList返回的json数据为null
This commit is contained in:
parent
38170c702e
commit
d0214a13e1
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user