From 8aaa7a8ba57bd3755bb1e89ede7c6c7dad3a4019 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 5 Jun 2022 16:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=89=E4=B8=9D=E5=9B=A2=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=EF=BC=8Ctype=E5=86=99=E5=8F=8D=E4=BA=86=E2=80=A6=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- messages/fansclub.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/messages/fansclub.py b/messages/fansclub.py index 51e164c..43c235d 100644 --- a/messages/fansclub.py +++ b/messages/fansclub.py @@ -11,7 +11,8 @@ class FansclubMessage(Base): return self.instance.content def __str__(self): - if self.instance.type == 1: + if self.instance.type == 2: return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【加入粉丝团】' + self.format_content() - elif self.instance.type == 2: + elif self.instance.type == 1: return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【粉丝牌升级】' + self.format_content() + return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【粉丝团信息】' + self.format_content() \ No newline at end of file