mirror of
https://github.com/linbailo/zyqinglong.git
synced 2026-01-15 12:50:42 +08:00
修正推送失效
This commit is contained in:
parent
edec5018c3
commit
f93abaceea
20
SFSY.py
20
SFSY.py
@ -1639,13 +1639,22 @@ class RUN:
|
|||||||
# self.DRAGONBOAT_2024_Game_init()
|
# self.DRAGONBOAT_2024_Game_init()
|
||||||
self.DRAGONBOAT_2024_coinStatus(True)
|
self.DRAGONBOAT_2024_coinStatus(True)
|
||||||
|
|
||||||
self.sendMsg()
|
# self.sendMsg()
|
||||||
|
self.send_notification_message('顺丰速运')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def sendMsg(self, help=False):
|
# def sendMsg(self, help=False):
|
||||||
if self.send_UID:
|
# if self.send_UID:
|
||||||
push_res = CHERWIN_TOOLS.wxpusher(self.send_UID, one_msg, APP_NAME, help)
|
# push_res = CHERWIN_TOOLS.wxpusher(self.send_UID, one_msg, APP_NAME, help)
|
||||||
print(push_res)
|
# print(push_res)
|
||||||
|
def send_notification_message(self,title):
|
||||||
|
try:
|
||||||
|
from notify import send
|
||||||
|
|
||||||
|
send(title, ''.join(send_msg))
|
||||||
|
except Exception as e:
|
||||||
|
if e:
|
||||||
|
print(f'发送通知消息失败!{e}')
|
||||||
|
|
||||||
|
|
||||||
def get_quarter_end_date():
|
def get_quarter_end_date():
|
||||||
@ -1741,4 +1750,3 @@ export {ENV_NAME}='url'多账号#分割
|
|||||||
for index, infos in enumerate(tokens):
|
for index, infos in enumerate(tokens):
|
||||||
run_result = RUN(infos, index).main()
|
run_result = RUN(infos, index).main()
|
||||||
if not run_result: continue
|
if not run_result: continue
|
||||||
|
|
||||||
|
|||||||
18
mtV1.py
18
mtV1.py
@ -28,6 +28,16 @@ else:
|
|||||||
meituanCookie = ['']
|
meituanCookie = ['']
|
||||||
print('无meituanCookie变量')
|
print('无meituanCookie变量')
|
||||||
|
|
||||||
|
|
||||||
|
def send_notification_message(title):
|
||||||
|
try:
|
||||||
|
from sendNotify import send
|
||||||
|
|
||||||
|
send(title, ''.join(all_print_list))
|
||||||
|
except Exception as e:
|
||||||
|
if e:
|
||||||
|
print('发送通知消息失败!')
|
||||||
|
|
||||||
#外卖
|
#外卖
|
||||||
def waim(ck):
|
def waim(ck):
|
||||||
|
|
||||||
@ -97,7 +107,7 @@ if __name__ == '__main__':
|
|||||||
main()
|
main()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('未知错误')
|
print('未知错误')
|
||||||
# try:
|
try:
|
||||||
# send_notification_message(title='') # 发送通知
|
send_notification_message(title='') # 发送通知
|
||||||
# except Exception as e:
|
except Exception as e:
|
||||||
# print('小错误')
|
print('小错误')
|
||||||
|
|||||||
@ -159,7 +159,8 @@ def serverJ(title, content):
|
|||||||
"text": title,
|
"text": title,
|
||||||
"desp": content.replace("\n", "\n\n")
|
"desp": content.replace("\n", "\n\n")
|
||||||
}
|
}
|
||||||
response = requests.post(f"https://sc.ftqq.com/{PUSH_KEY}.send", data=data).json()
|
response = requests.post(
|
||||||
|
f"https://sct.ftqq.com/{PUSH_KEY}.send", data=data).json()
|
||||||
if response['code'] == 0:
|
if response['code'] == 0:
|
||||||
print('推送成功!')
|
print('推送成功!')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user