From d6565eee44530a74bff0e930999736bd0afdbec3 Mon Sep 17 00:00:00 2001 From: unknown <1162963624@qq.com> Date: Mon, 30 Nov 2020 15:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/js/common.js | 4 ++-- dist/js/debug/GenerateTestUserSig.js | 2 +- public/js/common.js | 4 ++-- public/js/debug/GenerateTestUserSig.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/js/common.js b/dist/js/common.js index b4c196a..af3231a 100644 --- a/dist/js/common.js +++ b/dist/js/common.js @@ -172,7 +172,7 @@ function setBtnClickFuc() { const jiekou = new Promise((res)=>{ $.ajax({ url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, - headers: "Bearer " + localStorage.getItem("token"), + headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, success(){ res(1) } @@ -181,7 +181,7 @@ function setBtnClickFuc() { const jieshu = new Promise((res)=>{ $.ajax({ url: window.url + 'live?liveid=' + window.liveid, - headers: "Bearer " + localStorage.getItem("token"), + headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, method:"POST", data:{ status: 2 diff --git a/dist/js/debug/GenerateTestUserSig.js b/dist/js/debug/GenerateTestUserSig.js index fa11132..a730cf4 100644 --- a/dist/js/debug/GenerateTestUserSig.js +++ b/dist/js/debug/GenerateTestUserSig.js @@ -63,7 +63,7 @@ function genTestUserSig(userID) { return new Promise((res)=>{ $.ajax({ url: window.url + 'userSig?userid=' + userID, - headers: "Bearer " + localStorage.getItem("token"), + headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, success(data){ res({data: data.data, id: 1400435767}) } diff --git a/public/js/common.js b/public/js/common.js index b4c196a..af3231a 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -172,7 +172,7 @@ function setBtnClickFuc() { const jiekou = new Promise((res)=>{ $.ajax({ url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, - headers: "Bearer " + localStorage.getItem("token"), + headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, success(){ res(1) } @@ -181,7 +181,7 @@ function setBtnClickFuc() { const jieshu = new Promise((res)=>{ $.ajax({ url: window.url + 'live?liveid=' + window.liveid, - headers: "Bearer " + localStorage.getItem("token"), + headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, method:"POST", data:{ status: 2 diff --git a/public/js/debug/GenerateTestUserSig.js b/public/js/debug/GenerateTestUserSig.js index fa11132..a730cf4 100644 --- a/public/js/debug/GenerateTestUserSig.js +++ b/public/js/debug/GenerateTestUserSig.js @@ -63,7 +63,7 @@ function genTestUserSig(userID) { return new Promise((res)=>{ $.ajax({ url: window.url + 'userSig?userid=' + userID, - headers: "Bearer " + localStorage.getItem("token"), + headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, success(data){ res({data: data.data, id: 1400435767}) }