mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
chore.同步回调消息
This commit is contained in:
@@ -618,7 +618,12 @@ bool asst::Controller::connect(const std::string & adb_path, const std::string &
|
||||
json::value info = json::object{
|
||||
{ "what", "ConnectFailed" },
|
||||
{ "why", "ConfigNotFound" },
|
||||
{ "details", json::object{} }
|
||||
{ "uuid", ""},
|
||||
{ "details", json::object {
|
||||
{ "adb", adb_path },
|
||||
{ "address", address },
|
||||
{ "config", config }
|
||||
}}
|
||||
};
|
||||
m_callback(AsstMsg::ConnectionInfo, info, m_callback_arg);
|
||||
return false;
|
||||
@@ -652,8 +657,7 @@ bool asst::Controller::connect(const std::string & adb_path, const std::string &
|
||||
{ "details", json::object {
|
||||
{ "adb", adb_path },
|
||||
{ "address", address },
|
||||
{ "config", config },
|
||||
{ "uuid", "" }
|
||||
{ "config", config }
|
||||
}}
|
||||
};
|
||||
m_callback(AsstMsg::ConnectionInfo, info, m_callback_arg);
|
||||
|
||||
Reference in New Issue
Block a user