修复某些情况下开放 API 获取到的音量为0 的问题(#2790)
This commit is contained in:
@@ -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'] })
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user