From 4937ddb09c472593633b050ba58172fcdfbdee20 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 15 May 2026 12:15:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E5=BC=80=E6=94=BE=20API=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=88=B0=E7=9A=84=E9=9F=B3=E9=87=8F=E4=B8=BA0=20=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98(#2790)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/main/app.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/publish/changeLog.md b/publish/changeLog.md index 8949e790..a707f400 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,3 +1,4 @@ ### 修复 - 修复 kg 搜索结果显示问题(#2782) +- 修复某些情况下开放 API 获取到的音量为0 的问题(#2790) diff --git a/src/main/app.ts b/src/main/app.ts index 09efe94d..53696fb8 100644 --- a/src/main/app.ts +++ b/src/main/app.ts @@ -257,6 +257,8 @@ export const listenerAppEvent = (startApp: () => void) => { }) global.lx.event_app.on('app_inited', () => { setProxy() + global.lx.event_app.player_status({ volume: Math.trunc(global.lx.appSetting['player.volume'] * 100) }) + global.lx.event_app.player_status({ mute: global.lx.appSetting['player.isMute'] }) }) }