From f38ec0aa33c30079e19122958259920a2f02329e Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 1 Nov 2017 16:20:30 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E4=BF=AE=E5=A4=8DJaqsService=E7=9A=84?= =?UTF-8?q?=E4=B8=A4=E4=B8=AAtypo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/app/jaqsService/jsEngine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vnpy/trader/app/jaqsService/jsEngine.py b/vnpy/trader/app/jaqsService/jsEngine.py index d1463e78..20718381 100644 --- a/vnpy/trader/app/jaqsService/jsEngine.py +++ b/vnpy/trader/app/jaqsService/jsEngine.py @@ -67,7 +67,7 @@ class JsEngine(object): #---------------------------------------------------------------------- def initCallback(self): """初始化回调函数映射""" - self.cbDict['sys.heartbeat'] = self.onHeartbeat + self.cbDict['.sys.heartbeat'] = self.onHeartbeat self.cbDict['auth.login'] = self.onLogin self.cbDict['auth.use_strategy'] = self.onUseStrategy self.cbDict['oms.query_position'] = self.onQueryPosition @@ -132,7 +132,7 @@ class JsEngine(object): """使用策略""" result = req['params']['account_id'] error = [0, ''] - self.server.send_rsp(client_id, req, result, error) + self.server.send_rsp(clientId, req, result, error) self.writeLog(u'发出响应:%s' %result) @@ -185,7 +185,7 @@ class JsEngine(object): error = [0, ''] - self.server.send_rsp(client_id, req, result, error) + self.server.send_rsp(clientId, req, result, error) self.writeLog(u'发出响应:%s' %result)