diff --git a/src/plugins/hk_reporter/platform/utils.py b/src/plugins/hk_reporter/platform/utils.py index 210fed2..5b3b22c 100644 --- a/src/plugins/hk_reporter/platform/utils.py +++ b/src/plugins/hk_reporter/platform/utils.py @@ -51,7 +51,7 @@ async def fetch_and_send(target_type: str): bot = bot_list[0] if bot_list else None for new_post in new_posts: logger.warning('get new {} dynamic: {}'.format(target_type, new_post.url)) - logger.warning(new_post[:50]) + logger.warning(new_post) if not bot: logger.warning('no bot connected') else: diff --git a/src/plugins/hk_reporter/post.py b/src/plugins/hk_reporter/post.py index 579d94e..ce22381 100644 --- a/src/plugins/hk_reporter/post.py +++ b/src/plugins/hk_reporter/post.py @@ -31,4 +31,4 @@ class Post: self.pics = pics def __str__(self): - return 'type: {}\ntext: {}\nurl: {}\npic: {}'.format(self.target_type, self.text, self.url, ','.join(self.pics)) + return 'type: {}\ntext: {}\nurl: {}\npic: {}'.format(self.target_type, self.text[:50], self.url, ','.join(map(lambda x: 'b64img' if x.startswith('base64') else x, self.pics)))