From 3e96eb6ec6e8c71ffdabe9f76ad1a3db301e749e Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 19 七月 2023 14:19:38 +0800 Subject: [PATCH] bug修复 --- third_data/kpl_api.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/third_data/kpl_api.py b/third_data/kpl_api.py index ea86177..2256886 100644 --- a/third_data/kpl_api.py +++ b/third_data/kpl_api.py @@ -23,9 +23,10 @@ raise Exception("璇锋眰鍑洪敊") result = response.text result = json.loads(result) + print(result) if int(result["errcode"]) != 0: return None - return result["ListJX"] + return result["ListJX"] if result["ListJX"] else result["List"] # 鑾峰彇姒傚康浠g爜 def getCodesByPlate(plate_code): -- Gitblit v1.8.0