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'] }) }) }