fix: 修复连接信息uuid为空的问题,并修复一个命名问题

This commit is contained in:
MistEO
2022-07-23 00:18:51 +08:00
parent 8b6e612f14
commit dedd186a0f
5 changed files with 8 additions and 6 deletions

View File

@@ -295,7 +295,9 @@ void Assistant::task_callback(AsstMsg msg, const json::value& detail, void* cust
{
auto p_this = static_cast<Assistant*>(custom_arg);
json::value more_detail = detail;
more_detail["uuid"] = p_this->m_uuid;
if (!more_detail.contains("uuid")) {
more_detail["uuid"] = p_this->m_uuid;
}
switch (msg) {
case AsstMsg::InternalError: