zxs 2 天之前
父节点
当前提交
ba85bc7da7
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      robot/robotics/nexus_net_client.hpp

+ 3 - 3
robot/robotics/nexus_net_client.hpp

@@ -814,7 +814,7 @@ namespace robotics {
             /**
              * @brief 授权状态
              */
-            v3::delegates<bool, std::string const&, std::string const&> authorized_event;
+            v3::delegates<bool, std::string const&, std::string const&> authorize_event;
             /**
              * @brief 连接断开
              */
@@ -935,11 +935,11 @@ namespace robotics {
                 std::string message;
                 data.args >> is_heartbeat_ >> parent_code_ >> parent_name_ >> node_name >> message;
                 if (is_heartbeat_) {
-                    authorized_event(true, parent_code_, parent_name_);
+                    authorize_event(true, parent_code_, parent_name_);
                     subscribe();
                 }
                 else {
-                    authorized_event(false, "", "");
+                    authorize_event(false, "", "");
                 }
             }
             /**