增加发送微信
This commit is contained in:
parent
89d6e6c6fa
commit
d6a13d6edf
@ -473,6 +473,8 @@ class MainEngine(object):
|
|||||||
# 发出邮件
|
# 发出邮件
|
||||||
try:
|
try:
|
||||||
sendmail(subject=u'{0} Critical'.format('_'.join(self.connected_gw_names)), msgcontent=content)
|
sendmail(subject=u'{0} Critical'.format('_'.join(self.connected_gw_names)), msgcontent=content)
|
||||||
|
from vnpy.trader.util_wx_ft import sendWxMsg
|
||||||
|
sendWxMsg(text=content,desp='Critical error')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -485,6 +487,7 @@ class MainEngine(object):
|
|||||||
# sendWeChatMsg(content, target=target, level=WECHAT_LEVEL_FATAL)
|
# sendWeChatMsg(content, target=target, level=WECHAT_LEVEL_FATAL)
|
||||||
#except:
|
#except:
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
#
|
#
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
def dbConnect(self):
|
def dbConnect(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user