修复某些情况下开放 API 获取到的音量为0 的问题(#2790)

This commit is contained in:
lyswhut
2026-05-15 12:15:04 +08:00
parent 4b00a06a88
commit 4937ddb09c
2 changed files with 3 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
### 修复
- 修复 kg 搜索结果显示问题(#2782
- 修复某些情况下开放 API 获取到的音量为0 的问题(#2790

View File

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