mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-11 13:17:29 +08:00
feat: 修复reactions相关请求
This commit is contained in:
@@ -41,7 +41,7 @@ const fetchTypes = async () => {
|
|||||||
try {
|
try {
|
||||||
const token = getToken()
|
const token = getToken()
|
||||||
const res = await fetch(`${API_BASE_URL}/api/reaction-types`, {
|
const res = await fetch(`${API_BASE_URL}/api/reaction-types`, {
|
||||||
headers: { Authorization: `Bearer ${token}` }
|
headers: { Authorization: token ? `Bearer ${token}` : '' }
|
||||||
})
|
})
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
cachedTypes = await res.json()
|
cachedTypes = await res.json()
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class StatController {
|
|||||||
return data.entrySet().stream()
|
return data.entrySet().stream()
|
||||||
.map(e -> Map.<String,Object>of(
|
.map(e -> Map.<String,Object>of(
|
||||||
"date", e.getKey().toString(),
|
"date", e.getKey().toString(),
|
||||||
"value", e.getValue()
|
"value", e.getValue()
|
||||||
))
|
))
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user