Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
WirePusher通道添加“点击通知跳转至QQ”功能
Browse files Browse the repository at this point in the history
  • Loading branch information
chase535 committed Sep 23, 2022
1 parent 9308cf6 commit aa5247f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def data_handling(value, json_data):
if str(value.get('MiPush')) == "True":
data_send(value.get('MiPush_API'), title="新的好友添加请求", content='%s想要添加您为好友' % friendId, alias=value.get('MiPush_KEY'))
if str(value.get('FCM')) == "True":
data_send(value.get('FCM_API'), id=value.get('FCM_KEY'), title="新的好友添加请求", message='%s想要添加您为好友' % friendId, type='FriendAdd')
data_send(value.get('FCM_API'), id=value.get('FCM_KEY'), title="新的好友添加请求", message='%s想要添加您为好友' % friendId, type='QQ_FriendAdd', action='mqq://')
if str(value.get('TG')) == "True":
msg = friendId + ' 请求添加您为好友'
url = f"{str(value.get('TG_API'))}/bot{str(value.get('TG_KEY'))}/sendMessage"
Expand All @@ -260,7 +260,7 @@ def data_handling(value, json_data):
if str(value.get('MiPush')) == "True":
data_send(value.get('MiPush_API'), title="QQ通知", content='%s' % (msg), alias=value.get('MiPush_KEY'))
if str(value.get('FCM')) == "True":
data_send(value.get('FCM_API'), id=value.get('FCM_KEY'), title="QQ通知", message=str(msg), type='privateMsg')
data_send(value.get('FCM_API'), id=value.get('FCM_KEY'), title="QQ通知", message=str(msg), type='QQ_groupMsg', action='mqq://')
if str(value.get('TG')) == "True":
if str(groupId) in dict(value.get('TG_GroupLink')):
TG_ID = dict(value.get('TG_GroupLink')).get(str(groupId))
Expand All @@ -276,7 +276,7 @@ def data_handling(value, json_data):
if str(value.get('MiPush')) == "True":
data_send(value.get('MiPush_API'), title=str(nickname), content=str(msg), alias=value.get('MiPush_KEY'))
if str(value.get('FCM')) == "True":
data_send(value.get('FCM_API'), id=value.get('FCM_KEY'), title=str(nickname), message=str(msg), type='privateMsg')
data_send(value.get('FCM_API'), id=value.get('FCM_KEY'), title=str(nickname), message=str(msg), type='QQ_privateMsg', action='mqq://')
if str(value.get('TG')) == "True":
if str(uid) in dict(value.get('TG_GroupLink')):
TG_ID = dict(value.get('TG_GroupLink')).get(str(uid))
Expand All @@ -299,7 +299,7 @@ def data_handling(value, json_data):
if str(value.get('MiPush')) == "True":
data_send(value.get('MiPush_API'), title='%s' % groupName, content='%s:%s' % (nickName, msg), alias=value.get('MiPush_KEY'))
if str(value.get('FCM')) == "True":
data_send(value.get('FCM_API'), id='%s' % value.get('FCM_KEY'), title=str(groupName), message='%s:%s' % (nickName, msg), type='groupMsg')
data_send(value.get('FCM_API'), id='%s' % value.get('FCM_KEY'), title=str(groupName), message='%s:%s' % (nickName, msg), type='QQ_groupMsg', action='mqq://')
if str(value.get('TG')) == "True":
if str(groupId) in dict(value.get('TG_GroupLink')):
TG_ID = dict(value.get('TG_GroupLink')).get(str(groupId))
Expand Down

0 comments on commit aa5247f

Please sign in to comment.