mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
Merge PR #88: feat(qq) QQ Music radar / personal FM stream
This commit is contained in:
commit
9bfe831022
6 files changed
+217
-84
No files matched your search
@@ -438,6 +438,17 @@ export const usePlayerStore = defineStore('player', {
|
||||
if (bot) bot.playMode = mode;
|
||||
},
|
||||
|
||||
async startFm(platform: Source = 'netease') {
|
||||
if (!this.activeBotId) return;
|
||||
const res = await axios.post(`/api/player/${this.activeBotId}/fm`, { platform });
|
||||
if (res.data?.message) {
|
||||
this.notify(res.data.message, res.data.ok === false ? 'error' : 'info');
|
||||
}
|
||||
this._setTiming(this.activeBotId, { serverElapsed: 0 });
|
||||
this._syncAfterAction();
|
||||
this.fetchQueue();
|
||||
},
|
||||
|
||||
async fetchHomeData() {
|
||||
// Always check auth status first — if it changed since the cached
|
||||
// fetch (e.g., user logged in/out as a different account), the
|
||||
|
||||
Reference in new issue
Block a user