From ab767e07dcd5ca5094d9f996d086d87b114dd95d Mon Sep 17 00:00:00 2001 From: Snow Wang <31466760+why2lyj@users.noreply.github.com> Date: Sat, 13 Jun 2020 20:09:17 +0800 Subject: [PATCH] fix bugs --- chat/wechat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat/wechat.py b/chat/wechat.py index 47961fd..a15f03f 100644 --- a/chat/wechat.py +++ b/chat/wechat.py @@ -226,8 +226,8 @@ def group_note_msg(msg): invite_list = scan_invite or others_invite if invite_list: - invite_name = invite_list[0][0] # 加入者的昵称 - inviter_name = invite_list[0][1] # 邀请者的昵称 + invite_name = invite_list[0][1] # 加入者的昵称 + inviter_name = invite_list[0][0] # 邀请者的昵称 time.sleep(random.randint(1, 2)) note_invite_welcome = f'''@{invite_name}\u2005 \n欢迎加入群,请查看群规