From 7b4dbbfc406509f87b8e6e1842b7b4cb88f97a2d Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 07 七月 2023 11:20:15 +0800
Subject: [PATCH] 华鑫适配

---
 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