修复ios播放音频问题,修复休眠时段操作小程序加提示问题。

This commit is contained in:
HycJack
2026-05-26 02:18:00 +08:00
parent f9f1183e4b
commit e3059304b4
2 changed files with 20 additions and 20 deletions

View File

@@ -187,7 +187,7 @@ def install_auth_middleware(app: FastAPI) -> None:
if not await is_device_sleep(device_id):
return JSONResponse(
status_code=400, # 或 403 / 409
content={"detail": f"设备 {device_id} 不在线或已配置睡眠时间,请稍后再试"}
content={"detail": f"设备不在线或在休眠中"}
)
else:
# 路径格式不符合预期,可以放行或返回错误(根据业务决定)