update:Server端兼容老设备缺失"client-id"请求头 (#902)

* update:Server端兼容老设备缺失"client-id"请求头

* update:优化iot日志

* update:绑定设备时,板子类型优先获取品牌商版名称
This commit is contained in:
hrz
2025-04-20 01:28:01 +08:00
committed by GitHub
parent 14a63c4b97
commit 6c04a6cf69
4 changed files with 61 additions and 39 deletions
+3 -3
View File
@@ -243,8 +243,8 @@ class ConnectionHandler:
begin_time = time.time()
private_config = get_private_config_from_api(
self.config,
self.headers.get("device-id", None),
self.headers.get("client-id", None),
self.headers.get("device-id"),
self.headers.get("client-id", self.headers.get("device-id")),
)
private_config["delete_audio"] = bool(self.config.get("delete_audio", True))
self.logger.bind(tag=TAG).info(
@@ -622,7 +622,7 @@ class ConnectionHandler:
)
if not bHasError:
response_message.clear()
self.logger.bind(tag=TAG).info(
self.logger.bind(tag=TAG).debug(
f"function_name={function_name}, function_id={function_id}, function_arguments={function_arguments}"
)
function_call_data = {