mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
修改错误代码
This commit is contained in:
parent
c97678af0a
commit
77ba24b59c
@ -1193,7 +1193,7 @@ void installWebApi() {
|
|||||||
auto session_ptr = session->shared_from_this();
|
auto session_ptr = session->shared_from_this();
|
||||||
Broadcast::AuthInvoker authInvoker = [invoker, offer_sdp, val, info, headerOut, session_ptr](const string &err) mutable {
|
Broadcast::AuthInvoker authInvoker = [invoker, offer_sdp, val, info, headerOut, session_ptr](const string &err) mutable {
|
||||||
if (!err.empty()) {
|
if (!err.empty()) {
|
||||||
val["code"] = API::Exception;
|
val["code"] = API::AuthFailed;
|
||||||
val["msg"] = err;
|
val["msg"] = err;
|
||||||
invoker(200, headerOut, val.toStyledString());
|
invoker(200, headerOut, val.toStyledString());
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user