完善设备端体验与微信校验支持
This commit is contained in:
@@ -435,6 +435,8 @@ class TalkingQMQTTService:
|
||||
|
||||
async def _handle_alarm_report(self, device_id: str, payload: dict):
|
||||
logger.info(device_id, "", f"[告警] 设备 {device_id} 发送紧急报警")
|
||||
alarm_audio_url = f"http://{settings.server_host}:{settings.server_port}/assets/roles/banban/warn_parent_zh.mp3"
|
||||
|
||||
async def _record_alarm_and_notify():
|
||||
alarm_id = await device_alarm_service.record_alarm_event(
|
||||
device_id=device_id,
|
||||
@@ -466,9 +468,7 @@ class TalkingQMQTTService:
|
||||
"msg_id": "010",
|
||||
"status": "success",
|
||||
"type": 0,
|
||||
"params": {
|
||||
"url": f"http://{settings.server_host}:{settings.server_port}/assets/roles/banban/warn_parent_zh.mp3"
|
||||
},
|
||||
"params": {"url": alarm_audio_url},
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user