fix(api-server): handle QQ Music API export differences across versions

The @sansenjian/qq-music-api module's export structure varies between
versions (2.2.10 vs 2.2.11+). Add fallback chain to find the Koa app:
try candidate.listen first, then candidate.default.listen.

Also resolve leftover merge conflict marker in instance.ts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
saopig1andClaude Opus 4.6 committed 2026-04-13 20:52:27 +08:00
1 parent 0408f6ce3c
commit 4406eeacbe
2 files changed
+8 -3

No files matched your search

-2
View File
@@ -61,11 +61,9 @@ export class BotInstance extends EventEmitter {
private disconnectEmitted = false;
private voteSkipUsers = new Set<string>();
private isAdvancing = false;
<<<<<<< HEAD
private idleTimer: ReturnType<typeof setTimeout> | null = null;
private channelUserCount = 0;
private profileManager: BotProfileManager;
>>>>>>> origin/main
constructor(options: BotInstanceOptions) {
super();