This commit is contained in:
make
2025-04-23 19:21:11 +08:00
parent 9dca8ceea3
commit f0c9a625c6
4 changed files with 51 additions and 3 deletions

View File

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