From 50e0bf45bb61db544cf334f2a002b1c0dc7b3fff Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 15 八月 2023 16:42:36 +0800
Subject: [PATCH] ++++++++++++++++ bug修复-

---
 l2/l2_data_manager_new.py |   42 +++++++++++++++++++++---------------------
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index 3c04397..a70ad5a 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -408,7 +408,7 @@
         if round(t.time() * 1000) - __start_time > 10:
             __start_time = l2_data_log.l2_time(code, round(t.time() * 1000) - __start_time,
                                                "鑾峰彇m鍊兼暟鎹�楁椂")
-        if False:  # end_index - start_index < 10:
+        if True:  # end_index - start_index < 10:
             cls.__start_compute_buy(code, start_index, end_index, threshold_money, capture_time, is_first_code)
         else:
             # pass
@@ -614,17 +614,17 @@
                 l2_log.debug(code, "鏈夎櫄鎷熶笅鍗曪紝鏃犱拱鎾や俊鍙凤紝寮�濮嬫墽琛屼拱鍏ワ紝鎵ц浣嶇疆锛歿},鎴浘鏃堕棿锛歿}", unreal_buy_info[0], capture_time)
                 # unreal_buy_info 鐨勫唴瀹规牸寮忎负锛�(瑙︽硶涔版搷浣滀笅鏍�,鎴浘鏃堕棿)
                 # 鐪熷疄涓嬪崟
-                # cls.__buy(code, unreal_buy_info[1], local_today_datas[code][unreal_buy_info[0]],
-                #           unreal_buy_info[0], is_first_code)
-                lp = LineProfiler()
-                lp.enable()
-                lp_wrap = lp(cls.__buy)
-                lp_wrap(code, unreal_buy_info[1], local_today_datas[code][unreal_buy_info[0]],
-                        unreal_buy_info[0], is_first_code)
-                output = io.StringIO()
-                lp.print_stats(stream=output)
-                lp.disable()
-                logger_profile.info(output.getvalue())
+                cls.__buy(code, unreal_buy_info[1], local_today_datas[code][unreal_buy_info[0]],
+                          unreal_buy_info[0], is_first_code)
+                # lp = LineProfiler()
+                # lp.enable()
+                # lp_wrap = lp(cls.__buy)
+                # lp_wrap(code, unreal_buy_info[1], local_today_datas[code][unreal_buy_info[0]],
+                #         unreal_buy_info[0], is_first_code)
+                # output = io.StringIO()
+                # lp.print_stats(stream=output)
+                # lp.disable()
+                # logger_profile.info(output.getvalue())
 
                 _start_time = l2_data_log.l2_time(code, tool.get_now_timestamp() - _start_time,
                                                   "宸茶櫄鎷熶笅鍗�-鎵ц鐪熷疄涓嬪崟 澶栭儴鑰楁椂")
@@ -1194,15 +1194,15 @@
                 # 鏁版嵁灏氭湭澶勭悊瀹屾瘯锛岃繘琛屼笅涓�姝ュ鐞�
                 l2_log.debug(code, "鏁版嵁灏氭湭澶勭悊瀹屾瘯锛岃繘琛屼笅涓�姝ュ鐞嗭紝澶勭悊杩涘害锛歿} end_index:{}", compute_index, compute_end_index)
                 # 澶勭悊鎾ゅ崟姝ラ
-                # cls.__process_order(code, compute_index + 1, compute_end_index, capture_time, is_first_code, False)
-                lp = LineProfiler()
-                lp.enable()
-                lp_wrap = lp(cls.__process_order)
-                lp_wrap(code, compute_index + 1, compute_end_index, capture_time, is_first_code, False)
-                output = io.StringIO()
-                lp.print_stats(stream=output)
-                lp.disable()
-                logger_profile.info(output.getvalue())
+                cls.__process_order(code, compute_index + 1, compute_end_index, capture_time, is_first_code, False)
+                # lp = LineProfiler()
+                # lp.enable()
+                # lp_wrap = lp(cls.__process_order)
+                # lp_wrap(code, compute_index + 1, compute_end_index, capture_time, is_first_code, False)
+                # output = io.StringIO()
+                # lp.print_stats(stream=output)
+                # lp.disable()
+                # logger_profile.info(output.getvalue())
 
                 _start_time = l2_data_log.l2_time(code, tool.get_now_timestamp() - _start_time,
                                                   f"澶勭悊鎾ゅ崟姝ラ鑰楁椂锛岃寖鍥达細{compute_index + 1}-{compute_end_index}", force=True)

--
Gitblit v1.8.0