修改给服务留言的uuid匹配规则

This commit is contained in:
HycJack
2026-05-09 17:06:27 +08:00
parent a7f3b4f8dd
commit 8305bfcf2c
4 changed files with 3 additions and 5 deletions

View File

@@ -337,7 +337,7 @@ class TalkingQMQTTService:
params = payload.get("params", {})
nfc_uuid = str(params.get("uuid") or "").strip()
logger.info(device_id, "", f"[短按留言] 设备 {device_id} 短按发送留言, UUID={nfc_uuid}")
if nfc_uuid == settings.talkingq_parent_message_uuid:
if nfc_uuid == device_id:
await device_target_cache.set_parent_target(device_id, nfc_uuid)
response_payload = {
"msg_id": "011",