From cbb47fc396a73d39dc2e5c403fd8d6eef9dc72aa Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 19 七月 2024 11:04:47 +0800
Subject: [PATCH] bug修复

---
 third_data/kpl_api.py |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/third_data/kpl_api.py b/third_data/kpl_api.py
index 5184667..b3054cb 100644
--- a/third_data/kpl_api.py
+++ b/third_data/kpl_api.py
@@ -19,7 +19,7 @@
 DABAN_TYPE_EVER_LIMIT_DOWN = 5
 
 
-def __base_request(url, data, timeout=60):
+def __base_request(url, data, timeout=10):
     DELEGATE = True
     if not DELEGATE:
         headers = {
@@ -49,7 +49,6 @@
 def __getLimitUpInfo(pidType, page, pageSize):
     data = f"Order=0&a=DailyLimitPerformance&st={pageSize}&apiv=w35&Type=4&c=HomeDingPan&PhoneOSNew=1&DeviceID=a38adabd-99ef-3116-8bb9-6d893c846e24&VerSion=5.13.0.0&Index={(page - 1) * pageSize}&PidType={pidType}&"
     result = __base_request("https://apphq.longhuvip.com/w1/api/index.php", data=data)
-    print(result)
     return result
 
 
@@ -61,12 +60,10 @@
         for i in range(100):
             start_time = time.time()
             result = __getLimitUpInfo(pid_info[0], i + 1, 20)
-            print("璇锋眰鐢ㄦ椂", time.time() - start_time)
             result = json.loads(result)
             datas = result["info"][0]
             results.extend(datas)
             day = result["info"][1]
-            print(datas)
             if len(datas) < 20:
                 break
         for r in results:
@@ -261,4 +258,9 @@
 
 
 if __name__ == "__main__":
-    print(set(__getConceptJXBK("002670")) - constant.KPL_INVALID_BLOCKS)
+    # getCodeBlocks("300198")
+    data = (getMarketJingXuanRealRankingInfo())
+    data=json.loads(data)
+    print(len(data["list"]))
+    # data = json.loads(getCodesByPlate("801235"))
+    # print(data)

--
Gitblit v1.8.0