1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-03-31 10:49:44 +08:00

feat: 整理第三方播放设备的代码

This commit is contained in:
涵曦
2025-03-07 09:42:14 +08:00
parent 009a361b6b
commit 7209b03a12
4 changed files with 243 additions and 244 deletions

View File

@@ -151,8 +151,8 @@ async def custom_event(sid, data):
await sio.emit("response", {"action": "切歌", "status": data})
@app.post("/items/")
async def create_item(item: Item):
@app.post("thdaction")
async def thdaction(item: Item):
await sio.emit(
"response",
{"action": item.action, "args": item.args, "status": item.args},