diff --git a/src/main.cpp b/src/main.cpp index c1cbae4..b8809f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -67,7 +67,7 @@ int main() { // 从配置里拿 VID(确保 AppConfig 有 vehicle_id 字段) - const std::string vid = g_app_config.vehicle_id; + const std::string vid = g_app_config.mqtt.vehicle_id; const int local_http_port = 2980; // 建议也从 config 里读;这里先保留你的固定值