feat: 修复reactions相关请求

This commit is contained in:
tim
2025-07-14 22:00:41 +08:00
parent cc7b55e050
commit d5b391cc3a
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ const fetchTypes = async () => {
try {
const token = getToken()
const res = await fetch(`${API_BASE_URL}/api/reaction-types`, {
headers: { Authorization: `Bearer ${token}` }
headers: { Authorization: token ? `Bearer ${token}` : '' }
})
if (res.ok) {
cachedTypes = await res.json()

View File

@@ -34,7 +34,7 @@ public class StatController {
return data.entrySet().stream()
.map(e -> Map.<String,Object>of(
"date", e.getKey().toString(),
"value", e.getValue()
"value", e.getValue()
))
.toList();
}