-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
29 lines (21 loc) · 878 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from message_send import MessageSend
from config import message_tokens, youdao_cookie,ali_refresh_token,ty_pwd,ty_user,youdao_user, redis_info
import aliyunpan, tianyiyunpan,YouDao_user_login
def run():
content =''
title = ""
if youdao_user != None:
youdao_sign=YouDao_user_login.Youdao(youdao_user, redis_info)
content= youdao_sign.run() + '\n\n'
title = "【有道】"
# if ali_refresh_token != None :
# Aliyun=aliyunpan.Ali(ali_refresh_token, redis_info)
# content += Aliyun.run() + '\n\n'
# title += "【阿里】"
if ty_user != None and ty_pwd != None:
content += tianyiyunpan.main(ty_user, ty_pwd)
title += "【天翼】"
send = MessageSend()
send.send_all(message_tokens,title+'每日签到',content)
if __name__ == "__main__":
run()