diff --git a/service/DetectService.py b/service/DetectService.py index 29eedf2..b508c3a 100644 --- a/service/DetectService.py +++ b/service/DetectService.py @@ -532,6 +532,8 @@ def report_close(pound_no: str, total_number_carriage: int): return 412, "total_number_carriage should be a int and > 0", {} pound_no = int(pound_no) + if pound_no > config.track_num: + return 412, '开启报表的股道号超过当前设置的股道数量,请检查配置', {} total_number_carriage = int(total_number_carriage) tagsList = TagsList()