增加 server酱通知

pull/328/head
jasonqiao36 5 years ago
parent 7a4b56ba91
commit a89b918f98

@ -7,6 +7,7 @@ import requests
from agency.agency_tools import proxy
from config.emailConf import sendEmail
from config.pushbearConf import sendPushBear
from config.serverchanConf import sendServerChan
def _set_header_default():
@ -58,8 +59,6 @@ class testAll(unittest.TestCase):
实测server酱是否可用
:return:
"""
from config.serverchanConf import sendServerChan
sendServerChan(u"server酱 微信通知测试一下")

@ -9,6 +9,7 @@ import TickerConfig
from config.TicketEnmu import ticket
from config.emailConf import sendEmail
from config.pushbearConf import sendPushBear
from config.serverchanConf import sendServerChan
from config.urlConf import urls
from inter.ConfirmSingleForQueue import confirmSingleForQueue
from myException.ticketIsExitsException import ticketIsExitsException
@ -130,6 +131,7 @@ class queryQueueByAfterNate:
else:
sendEmail(ticket.WAIT_ORDER_SUCCESS)
sendPushBear(ticket.WAIT_ORDER_SUCCESS)
sendServerChan(ticket.WAIT_ORDER_SUCCESS)
raise ticketIsExitsException(ticket.WAIT_AFTER_NATE_SUCCESS)

@ -5,6 +5,7 @@ import time
from config.TicketEnmu import ticket
from config.emailConf import sendEmail
from config.pushbearConf import sendPushBear
from config.serverchanConf import sendServerChan
from myException.ticketIsExitsException import ticketIsExitsException
from myException.ticketNumOutException import ticketNumOutException
@ -45,6 +46,8 @@ class queryOrderWaitTime:
data.get("orderId", "")))
sendPushBear(ticket.WAIT_ORDER_SUCCESS.format(
data.get("orderId", "")))
sendServerChan(ticket.WAIT_ORDER_SUCCESS.format(
data.get("orderId", "")))
raise ticketIsExitsException(ticket.WAIT_ORDER_SUCCESS.format(
data.get("orderId")))
elif data.get("msg", False):

Loading…
Cancel
Save