修复音量获取
This commit is contained in:
parent
04b9738a77
commit
abbc2f25bb
@ -14,6 +14,7 @@ $(function(){
|
||||
append_op_button_name("60分钟后关机");
|
||||
|
||||
// 拉取声音
|
||||
sendcmd("get_volume#");
|
||||
$.get("/getvolume", function(data, status) {
|
||||
console.log(data, status, data["volume"]);
|
||||
$("#volume").val(data.volume);
|
||||
|
@ -250,6 +250,7 @@ class XiaoMusic:
|
||||
|
||||
async def do_set_volume(self, value):
|
||||
value = int(value)
|
||||
self._volume = value
|
||||
self.log.info(f"声音设置为{value}")
|
||||
if not self.config.use_command:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user