mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 00:37:39 +08:00
close_stream接口结果返回字段改成result
This commit is contained in:
parent
f628985037
commit
bcc5c839a5
@ -437,10 +437,10 @@ void installWebApi() {
|
||||
allArgs["stream"]);
|
||||
if(src){
|
||||
bool flag = src->close(allArgs["force"].as<bool>());
|
||||
val["code"] = flag ? 0 : -1;
|
||||
val["result"] = flag ? 0 : -1;
|
||||
val["msg"] = flag ? "success" : "close failed";
|
||||
}else{
|
||||
val["code"] = -2;
|
||||
val["result"] = -2;
|
||||
val["msg"] = "can not find the stream";
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user