|
@@ -297,15 +297,10 @@ func handleReportData(report *ReportData) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ===================== 4. 临时车规则 =====================
|
|
// ===================== 4. 临时车规则 =====================
|
|
|
- if isTempVehicle {
|
|
|
|
|
- if !allowTemporary && !isWhite {
|
|
|
|
|
- fmt.Printf("🚫 禁止通行 | 临时车不允许此通道且不在白名单 | 设备:%s EPC:%s\n", report.DeviceCode, epc)
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- if !isWhite {
|
|
|
|
|
- fmt.Printf("🚫 禁止通行 | 临时车不在白名单 | 设备:%s EPC:%s\n", report.DeviceCode, epc)
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // 临时车:通道允许临停 或 在白名单中 即可通行
|
|
|
|
|
+ if isTempVehicle && !allowTemporary && !isWhite {
|
|
|
|
|
+ fmt.Printf("🚫 禁止通行 | 临时车不允许此通道且不在白名单 | 设备:%s EPC:%s\n", report.DeviceCode, epc)
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ===================== 5. 入口 =====================
|
|
// ===================== 5. 入口 =====================
|