修复某些情况下开放 API 获取到的音量为0 的问题(#2790)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
### 修复
|
### 修复
|
||||||
|
|
||||||
- 修复 kg 搜索结果显示问题(#2782)
|
- 修复 kg 搜索结果显示问题(#2782)
|
||||||
|
- 修复某些情况下开放 API 获取到的音量为0 的问题(#2790)
|
||||||
|
|||||||
@@ -257,6 +257,8 @@ export const listenerAppEvent = (startApp: () => void) => {
|
|||||||
})
|
})
|
||||||
global.lx.event_app.on('app_inited', () => {
|
global.lx.event_app.on('app_inited', () => {
|
||||||
setProxy()
|
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