From 0e68e24f54db11d340785b17570fff2bc5fc7ac6 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 24 七月 2023 13:05:16 +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