diff --git a/dist/js/common.js b/dist/js/common.js index af3231a..b5edbdf 100644 --- a/dist/js/common.js +++ b/dist/js/common.js @@ -180,9 +180,9 @@ function setBtnClickFuc() { }) const jieshu = new Promise((res)=>{ $.ajax({ - url: window.url + 'live?liveid=' + window.liveid, + url: window.url + 'live/' + window.liveid, headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, - method:"POST", + method:"PUT", data:{ status: 2 }, diff --git a/public/js/common.js b/public/js/common.js index af3231a..b5edbdf 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -180,9 +180,9 @@ function setBtnClickFuc() { }) const jieshu = new Promise((res)=>{ $.ajax({ - url: window.url + 'live?liveid=' + window.liveid, + url: window.url + 'live/' + window.liveid, headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, - method:"POST", + method:"PUT", data:{ status: 2 },