feat: enhance login status management and improve error logging across services

This commit is contained in:
zimplexing
2025-07-15 21:41:38 +08:00
parent 116cf12ca3
commit d44e9fe9ae
17 changed files with 62 additions and 57 deletions

View File

@@ -89,7 +89,7 @@ const usePlayerStore = create<PlayerState>((set, get) => ({
outroStartTime: playRecord?.outroStartTime,
});
} catch (error) {
console.error("Failed to load play record", error);
console.info("Failed to load play record", error);
set({ isLoading: false });
}
},
@@ -217,7 +217,7 @@ const usePlayerStore = create<PlayerState>((set, get) => ({
handlePlaybackStatusUpdate: (newStatus) => {
if (!newStatus.isLoaded) {
if (newStatus.error) {
console.error(`Playback Error: ${newStatus.error}`);
console.info(`Playback Error: ${newStatus.error}`);
}
set({ status: newStatus });
return;