From 18df704c085d1db860f8d37f858d175090829894 Mon Sep 17 00:00:00 2001 From: Echowxsy Date: Mon, 14 Jan 2019 20:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=A2=E5=8D=95=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E6=97=B6=E9=92=89=E9=92=89=E9=80=9A=E7=9F=A5=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py12306/order/order.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py12306/order/order.py b/py12306/order/order.py index 61fbacc..74dd9f7 100644 --- a/py12306/order/order.py +++ b/py12306/order/order.py @@ -82,6 +82,8 @@ class Order: if Config().EMAIL_ENABLED: # 邮件通知 Notification.send_email(Config().EMAIL_RECEIVER, OrderLog.MESSAGE_ORDER_SUCCESS_NOTIFICATION_TITLE, OrderLog.MESSAGE_ORDER_SUCCESS_NOTIFICATION_OF_EMAIL_CONTENT.format(self.order_id)) + if Config().DINGTALK_ENABLED: # 钉钉通知 + Notification.dingtalk_webhook(OrderLog.MESSAGE_ORDER_SUCCESS_NOTIFICATION_OF_EMAIL_CONTENT.format(self.order_id)) while sustain_time: # TODO 后面直接查询有没有待支付的订单就可以 num += 1 if Config().NOTIFICATION_BY_VOICE_CODE: # 语音通知