mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 09:03:18 +08:00
update: 更新Umami API路径和响应数据处理逻辑
更新Umami API基础URL至自定义域名,并调整API路径以适配v3版本 修改统计数据获取逻辑以匹配新版API响应格式 更新文档说明以反映API变更
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
localStorage.removeItem(cacheKey);
|
||||
}
|
||||
}
|
||||
const res = await fetch(`${baseUrl}/api/share/${shareId}`);
|
||||
const res = await fetch(`${baseUrl}/analytics/us/api/share/${shareId}`);
|
||||
if (!res.ok) {
|
||||
throw new Error('获取 Umami 分享信息失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user