Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
py12306
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
python
py12306
Commits
18df704c
Commit
18df704c
authored
Jan 14, 2019
by
Echowxsy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加订单完成时钉钉通知入口
parent
d7c9a1cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
order.py
py12306/order/order.py
+2
-0
No files found.
py12306/order/order.py
View file @
18df704c
...
@@ -82,6 +82,8 @@ class Order:
...
@@ -82,6 +82,8 @@ class Order:
if
Config
()
.
EMAIL_ENABLED
:
# 邮件通知
if
Config
()
.
EMAIL_ENABLED
:
# 邮件通知
Notification
.
send_email
(
Config
()
.
EMAIL_RECEIVER
,
OrderLog
.
MESSAGE_ORDER_SUCCESS_NOTIFICATION_TITLE
,
Notification
.
send_email
(
Config
()
.
EMAIL_RECEIVER
,
OrderLog
.
MESSAGE_ORDER_SUCCESS_NOTIFICATION_TITLE
,
OrderLog
.
MESSAGE_ORDER_SUCCESS_NOTIFICATION_OF_EMAIL_CONTENT
.
format
(
self
.
order_id
))
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 后面直接查询有没有待支付的订单就可以
while
sustain_time
:
# TODO 后面直接查询有没有待支付的订单就可以
num
+=
1
num
+=
1
if
Config
()
.
NOTIFICATION_BY_VOICE_CODE
:
# 语音通知
if
Config
()
.
NOTIFICATION_BY_VOICE_CODE
:
# 语音通知
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment