From 706abf1cfae0cbf4f7676d1267463a93749ebe74 Mon Sep 17 00:00:00 2001 From: "Mr.V" Date: Mon, 4 Mar 2024 15:50:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0V2.9=201=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=BC=80=E5=90=AF=E6=8A=A5=E8=A1=A8=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=89=80=E8=BE=93=E5=85=A5=E7=9A=84=E8=82=A1=E9=81=93=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E5=A4=A7=E4=BA=8E=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E8=82=A1=E9=81=93=E6=95=B0=E7=9A=84=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E6=8A=A5=E9=94=99=E5=86=85=E5=AE=B9=202=E3=80=81?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AF=BB=E5=8F=96=E6=8E=90=E7=85=A4=E9=87=8F?= =?UTF-8?q?=E7=9A=84=E4=BE=9D=E6=8D=AE=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/DetectService.py | 2 ++ 1 file changed, 2 insertions(+) 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()