增加发送微信

This commit is contained in:
msincenselee 2019-03-04 22:16:02 +08:00
parent 89d6e6c6fa
commit d6a13d6edf

View File

@ -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):