添加测试用例, 完善pushbear代码
This commit is contained in:
@@ -4,6 +4,7 @@ import time
|
||||
|
||||
from config.TicketEnmu import ticket
|
||||
from config.emailConf import sendEmail
|
||||
from config.pushbearConf import sendPushBear
|
||||
from myException.ticketIsExitsException import ticketIsExitsException
|
||||
from myException.ticketNumOutException import ticketNumOutException
|
||||
|
||||
@@ -42,6 +43,8 @@ class queryOrderWaitTime:
|
||||
if data and data.get("orderId", ""):
|
||||
sendEmail(ticket.WAIT_ORDER_SUCCESS.format(
|
||||
data.get("orderId", "")))
|
||||
sendPushBear(ticket.WAIT_ORDER_SUCCESS.format(
|
||||
data.get("orderId", "")))
|
||||
raise ticketIsExitsException(ticket.WAIT_ORDER_SUCCESS.format(
|
||||
data.get("orderId")))
|
||||
elif data.get("msg", False):
|
||||
|
||||
Reference in New Issue
Block a user