|
|
@@ -317,7 +317,7 @@ int main(int argc, char** argv)
|
|
|
time_t last_daily_cleanup = 0;
|
|
|
time_t last_file_cleanup = 0; // ✅ fix18: 文件清理时间戳
|
|
|
|
|
|
- std::cout << "✅ 车牌识别系统 v43.2 fix19 容量照片清理+代码日志清理+P0修复版 启动完成" << std::endl;
|
|
|
+ std::cout << "✅ 车牌识别系统 fix27 v44 容量照片清理+代码日志清理+P0修复版 启动完成" << std::endl;
|
|
|
std::cout << " 项目名称: " << project_name << std::endl;
|
|
|
std::cout << " 工地编号: " << point_number << std::endl;
|
|
|
std::cout << " 出入口: " << throughway << std::endl;
|
|
|
@@ -766,8 +766,9 @@ int main(int argc, char** argv)
|
|
|
std::cerr << "[业务拒绝] " << plate_info->code << " 错误码: " << result
|
|
|
<< ",不进行重试" << std::endl;
|
|
|
g_metrics.record_permanent_failure();
|
|
|
+ // ✅ fix27: 添加空指针检查,防止 cap_info_copy 为空时崩溃
|
|
|
send_permanent_failure_alert(plate_info->code,
|
|
|
- plate_info->cap_info_copy->dtype == STATION_IN,
|
|
|
+ (plate_info->cap_info_copy && plate_info->cap_info_copy->dtype == STATION_IN),
|
|
|
plate_info->retry_count, plate_info->db_id);
|
|
|
// ✅ fix24 v43 Bug#12: 清理无人消费的重量任务 entry
|
|
|
if (g_sync_parallel_enabled && !plate_info->tb_num.empty()) {
|