Administrator
2024-12-30 0ff5b4417b015c73566f73ac0ebf675c5ca862bf
huaxin_client/huaxin_trade_client.py
@@ -65,6 +65,7 @@
        self.call_back_thread_pool = concurrent.futures.ThreadPoolExecutor(max_workers=10)
    def OnFrontConnected(self) -> "void":
        print("OnFrontConnected")
        # 获取终端信息
        TradeSimpleApi.req_id += 1
@@ -78,6 +79,7 @@
    def OnRspGetConnectionInfo(self, pConnectionInfoField: "CTORATstpConnectionInfoField",
                               pRspInfoField: "CTORATstpRspInfoField", nRequestID: "int") -> "void":
        print("OnRspGetConnectionInfo")
        if pRspInfoField.ErrorID == 0:
            logger.info('inner_ip_address[%s]' % pConnectionInfoField.InnerIPAddress)
            logger.info('inner_port[%d]' % pConnectionInfoField.InnerPort)
@@ -134,6 +136,7 @@
    def OnRspUserLogin(self, pRspUserLoginField: "CTORATstpRspUserLoginField", pRspInfoField: "CTORATstpRspInfoField",
                       nRequestID: "int") -> "void":
        print("OnRspUserLogin")
        if pRspInfoField.ErrorID == 0:
            logger_system.info('Login success! [%d]' % nRequestID)
            self.__front_id = pRspUserLoginField.FrontID