You've already forked Douyin_Web_Live
intro pymongo
This commit is contained in:
@ -7,5 +7,8 @@ class SocialMessage(Base):
|
||||
def __init__(self):
|
||||
self.instance = message_pb2.SocialMessage()
|
||||
|
||||
def format_content(self):
|
||||
return self.user().nickname + ' 关注了主播'
|
||||
|
||||
def __str__(self):
|
||||
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【关注】' + self.user().nickname + ' 关注了主播'
|
||||
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【关注】' + self.format_content()
|
Reference in New Issue
Block a user