修改错误代码

This commit is contained in:
ziyue 2021-07-02 14:55:22 +08:00
parent c97678af0a
commit 77ba24b59c

View File

@ -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;