debuhg
This commit is contained in:
@@ -341,7 +341,7 @@ function displayHistory() {
|
||||
|
||||
// 方法1:使用 fetch API
|
||||
async function reportStats(data) {
|
||||
console.log(strPushApi)
|
||||
|
||||
try {
|
||||
const response = await fetch(strPushApi+'/publish', {
|
||||
method: 'POST',
|
||||
@@ -349,7 +349,7 @@ async function reportStats(data) {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
// 如果需要认证可以添加
|
||||
// 'Authorization': 'Bearer your-token'
|
||||
'Authorization': 'Bearer your-token'
|
||||
},
|
||||
body: JSON.stringify(data)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user