修复家长给设备留言问题

This commit is contained in:
HycJack
2026-05-10 20:45:11 +08:00
parent 8305bfcf2c
commit 847755c56a
3 changed files with 15 additions and 5 deletions

View File

@@ -344,7 +344,7 @@ class TalkingQMQTTService:
"status": "success",
"type": 0,
"params": {
"url": "http://101.35.224.118:8080/assets/audio/parent_online_zh.mp3"
"url": f"http://{settings.server_host}:{settings.server_port}/assets/audio/parent_online_zh.mp3"
},
}
await self._publish(f"device/{device_id}/event_resp", response_payload)
@@ -371,7 +371,7 @@ class TalkingQMQTTService:
"status": "success",
"type": 0,
"params": {
"url": "http://101.35.224.118:8080/assets/audio/parent_online_zh.mp3"
"url": f"http://{settings.server_host}:{settings.server_port}/assets/audio/parent_online_zh.mp3"
},
},
)