添加mqtt插入卡片和设备绑定

This commit is contained in:
HycJack
2026-04-29 04:58:29 +08:00
parent 51501bde19
commit 6f18b73f95
2 changed files with 3 additions and 0 deletions

View File

@@ -165,6 +165,8 @@ class TalkingQMQTTService:
logger.info(device_id, "", f"[NFC绑定] 设备 {device_id} 请求绑定卡片返回状态: {status}")
nfc_uuid = params.get("uuid")
# 卡片与设备绑定
await card_service.activate_card(device_id=device_id, card_uuid=nfc_uuid)
logger.info(device_id, "", f"[NFC绑定] 设备 {device_id} 请求绑定卡片, UUID={nfc_uuid}")
async def _handle_open_response(self, device_id: str, payload: dict):