Merge branch 'main' into test-clean
# Conflicts: # talkingq-url/handlers/mqtt_handler.py
This commit is contained in:
@@ -138,6 +138,7 @@ class TalkingQMQTTService:
|
||||
async def _handle_nfc_listen_report(self, device_id: str, payload: dict):
|
||||
params = payload.get("params", {})
|
||||
nfc_uuid = params.get("uuid")
|
||||
logger.info(device_id, "", f"[NFC收听] 设备 {device_id} 请求收听留言, UUID={nfc_uuid}")
|
||||
await self._send_nfc_listen_response(device_id, nfc_uuid)
|
||||
|
||||
async def _handle_bind_response(self, device_id: str, payload: dict):
|
||||
@@ -154,7 +155,6 @@ class TalkingQMQTTService:
|
||||
if not nfc_uuid:
|
||||
logger.warning(device_id, "", f"[NFC bind] missing uuid: {payload}")
|
||||
return
|
||||
|
||||
service = BindingService()
|
||||
result = await service.finalize_nfc_bind(device_id=device_id, card_uuid=nfc_uuid)
|
||||
if result is None:
|
||||
|
||||
Reference in New Issue
Block a user