From 6567e8cd1fb11ea10912bb3ac5bf2965c74c0e4b Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 06 一月 2025 18:09:47 +0800
Subject: [PATCH] 统计大卖单

---
 l2_test.py |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/l2_test.py b/l2_test.py
index 6e35dda..60914b8 100644
--- a/l2_test.py
+++ b/l2_test.py
@@ -37,15 +37,18 @@
                 response_data = json.dumps({"code": 0, "data": fdatas})
             except Exception as e:
                 response_data = json.dumps({"code": 1, "msg": str(e)})
-        elif url.path == "/get_big_buy_order_list":
-            # 鑾疯幏鍙栦唬鐮佺殑澶т拱鍗曞垪琛�
+        elif url.path == "/get_big_order_list":
+            # 鑾疯幏鍙栦唬鐮佺殑澶т拱/鍗栧崟鍒楄〃
             ps_dict = dict([(k, v[0]) for k, v in parse_qs(url.query).items()])
             code = ps_dict.get('code')
             try:
-                fdatas = CodeInMoneyManager().get_big_buy_money_list(code)
-                if fdatas is None:
-                    fdatas = []
-                response_data = json.dumps({"code": 0, "data": fdatas})
+                buy_datas = CodeInMoneyManager().get_big_buy_money_list(code)
+                if buy_datas is None:
+                    buy_datas = []
+                sell_datas = CodeInMoneyManager().get_big_sell_money_list(code)
+                if sell_datas is None:
+                    sell_datas = []
+                response_data = json.dumps({"code": 0, "data": {"buy": buy_datas, "sell": sell_datas}})
             except Exception as e:
                 response_data = json.dumps({"code": 1, "msg": str(e)})
         elif url.path == "/get_code_money_info":

--
Gitblit v1.8.0