From 2ccd2ee1112ee84f5139fc5b8cf2ce070f8f991e Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 31 十二月 2024 17:20:17 +0800
Subject: [PATCH] 测试

---
 huaxin_client/l1_api_client.py |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/huaxin_client/l1_api_client.py b/huaxin_client/l1_api_client.py
index 09481f6..237c4f8 100644
--- a/huaxin_client/l1_api_client.py
+++ b/huaxin_client/l1_api_client.py
@@ -3,8 +3,9 @@
 import threading
 import time
 
+import constant
 import qcvalueaddproapi
-from log_module.log import logger_system, logger_debug
+from log_module.log import logger_system
 from utils import tool
 
 global g_userid, g_passwd, g_address, g_port, g_seqnum
@@ -250,7 +251,6 @@
     while True:
         try:
             val = request_queue.get()
-            logger_debug.info(f"璇诲彇鍗庨懌澧炲�兼湇鍔¤姹傦細{val}")
             type_ = val['type']
             request_id = val['request_id']
             data = val.get('data')
@@ -268,7 +268,7 @@
                 results = thespi.queryBars(code, start_date, end_date)
                 __set_response_data(request_id, results)
         except Exception as e:
-            logger_debug.exception(e)
+            pass
 
 
 def run(request_queue: multiprocessing.Queue, response_queue: multiprocessing.Queue):
@@ -283,10 +283,10 @@
     g_port = 25556
     g_userid = "388000013942"
     g_passwd = "110808"
-
-    # 鍐呯綉
-    g_address = "192.168.84.61"
-    g_port = 25557
+    if not constant.is_windows():
+        # 鍐呯綉
+        g_address = "192.168.84.61"
+        g_port = 25557
 
     #IP锛�192.168.84.61锛夈�佺鍙o紙25557
 

--
Gitblit v1.8.0