mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 08:33:53 +08:00
@@ -55,11 +55,7 @@ class VisionHandler:
|
|||||||
device_id = request.headers.get("Device-Id", "")
|
device_id = request.headers.get("Device-Id", "")
|
||||||
client_id = request.headers.get("Client-Id", "")
|
client_id = request.headers.get("Client-Id", "")
|
||||||
if device_id != token_device_id:
|
if device_id != token_device_id:
|
||||||
return web.Response(
|
raise ValueError("设备ID与token不匹配")
|
||||||
text=json.dumps(self._create_error_response("设备ID与token不匹配")),
|
|
||||||
content_type="application/json",
|
|
||||||
status=401,
|
|
||||||
)
|
|
||||||
# 解析multipart/form-data请求
|
# 解析multipart/form-data请求
|
||||||
reader = await request.multipart()
|
reader = await request.multipart()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user