mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-12-03 03:12:51 +08:00
fix(music): default a new pool account to exclusive (capacity = 1)
Sharing one login between members mixes their playback history and recommendations, which is almost never what an admin means by handing out an account. Keep 0 (= unlimited) available, but not as the default.
This commit is contained in:
1 parent
61c24cc219
commit
1ef80be883
1 file changed
+4
-2
@@ -140,7 +140,9 @@ const users = ref<AssignableUser[]>([]);
|
||||
const platforms = ref<Array<{ platform: string; playbackSupported: boolean }>>([]);
|
||||
const creating = ref(false);
|
||||
const error = ref('');
|
||||
const draft = reactive({ platform: 'netease', label: '', cookie: '', capacity: 0 });
|
||||
// Default to exclusive: sharing one login between members mixes their
|
||||
// playback history and recommendations, which is almost never intended.
|
||||
const draft = reactive({ platform: 'netease', label: '', cookie: '', capacity: 1 });
|
||||
const cookieDraft = reactive<Record<string, string>>({});
|
||||
const probeResult = ref<Record<string, { loggedIn: boolean; nickname?: string } | undefined>>({});
|
||||
|
||||
@@ -192,7 +194,7 @@ async function create() {
|
||||
});
|
||||
draft.label = '';
|
||||
draft.cookie = '';
|
||||
draft.capacity = 0;
|
||||
draft.capacity = 1;
|
||||
await load();
|
||||
} catch (err) {
|
||||
error.value = errText(err, '添加失败');
|
||||
|
||||
Reference in new issue
Block a user