update zzrouter

This commit is contained in:
SiHuan 2020-08-03 12:04:06 +08:00
parent 831ca401fd
commit 0e36851940

View file

@ -2,9 +2,9 @@ from worker import emmm
def ZZRouter(data): def ZZRouter(data):
if data['message'][0] != '/': if data['post_type'] != 'message' or data['message_type'] != 'group' or data['message'][0] != '/':
return return
uid = data['user_id'] uid = data['user_id']
gid = data['group_id'] gid = data['group_id']
role = data['sender']['role'] role = data['sender']['role']