From 60674d7ab7199558afbc25eb3272abb5d44fe2e5 Mon Sep 17 00:00:00 2001 From: jiangsi Date: Sun, 24 Dec 2023 18:39:56 +0000 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AD=97=E5=85=B8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E5=85=B7=E4=BD=93=E7=9A=84=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E4=BE=9D=E8=B5=96type=5Fcode=20=E5=92=8C?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E5=88=86=E7=B1=BB=E5=85=B3=E8=81=94=EF=BC=8C?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=9C=A8=E6=B7=BB=E5=8A=A0=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=9A=84=E6=97=B6=E5=80=99=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=A1=AB=E5=86=99=E4=BA=86typecode=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E7=84=B6=E4=BC=9A=E5=87=BA=E7=8E=B0type=5Fcode=20?= =?UTF-8?q?=E4=B8=BAnone=E7=9A=84=E6=83=85=E5=86=B5=E3=80=82=20=20=20?= =?UTF-8?q?=E5=B9=B6=E4=B8=94type=5Fcode=E5=9C=A8=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=9A=84=E7=BC=96=E8=BE=91=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=BAreadonly=E7=9A=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangsi --- applications/view/system/dict.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/view/system/dict.py b/applications/view/system/dict.py index 11d9f26..ac76c59 100644 --- a/applications/view/system/dict.py +++ b/applications/view/system/dict.py @@ -49,6 +49,8 @@ def dict_type_save(): description = str_escape(req_json.get("description")) enable = str_escape(req_json.get("enable")) type_code = str_escape(req_json.get("typeCode")) + if type_code is None: + return fail_api(msg="标识必须填写") type_name = str_escape(req_json.get("typeName")) d = DictType(type_name=type_name, type_code=type_code, enable=enable, description=description) db.session.add(d) -- Gitee