mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-04-02 11:05:08 +08:00
fix: 修复CI警告问题
This commit is contained in:
@@ -67,7 +67,7 @@ async def getvolume():
|
||||
async def setvolume():
|
||||
data = request.get_json()
|
||||
did = data.get("did")
|
||||
volume = data.get("volume")
|
||||
volume = int(data.get("volume"))
|
||||
if not xiaomusic.did_exist(did):
|
||||
return {"ret": "Did not exist"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user