-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmain.py
34 lines (26 loc) · 1.15 KB
/
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
30
31
32
33
34
from message_send import MessageSend
from config import message_tokens, youdao_cookie,ali_refresh_token,ty_pwd,ty_user,youdao_user, redis_info, RedisUtil
import aliyunpan, tianyiyunpan,YouDao_user_login, imaotai
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)+'\n\n'
title += "【天翼】"
if redis_info != None:
datas = RedisUtil(redis_info).get('IMAOTAI') # 获取Redis取得茅台配置数据
_check_item = datas.get("IMAOTAI", [])[0]
content+= imaotai.IMAOTAI(check_item=_check_item).main()
title += "【茅台】"
send = MessageSend()
send.send_all(message_tokens,title+'每日签到',content)
if __name__ == "__main__":
run()