[Fix]修复JaqsService模块的bug

This commit is contained in:
vn.py 2017-12-21 15:16:31 +08:00
parent 2dcdcdf4e9
commit 777c0d93aa

View File

@ -64,6 +64,7 @@ class JsEngine(object):
# 初始化 # 初始化
self.initCallback() self.initCallback()
self.initServer() self.initServer()
self.registerEvent()
#---------------------------------------------------------------------- #----------------------------------------------------------------------
def registerEvent(self): def registerEvent(self):
@ -331,7 +332,7 @@ class JsEngine(object):
if not contract: if not contract:
return '' return ''
e = EXCHANGE_MAP_REVERSE[contract.exchange] e = EXCHANGE_MAP_REVERSE.get(contract.exchange, contract.exchange)
return '.'.join([contract.symbol, e]) return '.'.join([contract.symbol, e])
#---------------------------------------------------------------------- #----------------------------------------------------------------------