Administrator
2024-12-31 2ccd2ee1112ee84f5139fc5b8cf2ce070f8f991e
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)、端口(25557