修改绑定卡片,不需要uuid
This commit is contained in:
@@ -114,7 +114,7 @@ async def bind_nfc(
|
|||||||
# current_user_id: int = Depends(get_current_user_id)
|
# current_user_id: int = Depends(get_current_user_id)
|
||||||
):
|
):
|
||||||
service = await _get_service()
|
service = await _get_service()
|
||||||
msg_id = await service.send_bind_nfc_command(req.device_id, req.uuid)
|
msg_id = await service.send_bind_nfc_command(req.device_id)
|
||||||
return CommandResponse(msg_id=msg_id, device_id=req.device_id)
|
return CommandResponse(msg_id=msg_id, device_id=req.device_id)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ class TalkingQMQTTService:
|
|||||||
return "004"
|
return "004"
|
||||||
|
|
||||||
|
|
||||||
async def send_bind_nfc_command(self, device_id: str, uuid: str) -> str:
|
async def send_bind_nfc_command(self, device_id: str) -> str:
|
||||||
topic = f"device/{device_id}/command"
|
topic = f"device/{device_id}/command"
|
||||||
payload = {
|
payload = {
|
||||||
"msg_id": "006",
|
"msg_id": "006",
|
||||||
|
|||||||
Reference in New Issue
Block a user