Skip to content

Commit

Permalink
perf: 推送取消通知时不访问接口
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed May 12, 2024
1 parent bbc42c4 commit 383468b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions campux/imbot/mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ async def send_post_cancel_notify(
self,
post_id: int
):
post = await self.ap.cpx_api.get_post_info(post_id)

logger.info(f"稿件已取消:{post}")
logger.info(f"稿件已取消:{post_id}")

if self.ap.config.campux_qq_group_review:

msg = [
message.MessageSegment.text(f"稿件已取消: #{post.id}"),
message.MessageSegment.text(f"稿件已取消: #{post_id}"),
]

asyncio.create_task(self.ap.imbot.send_group_message(
Expand Down

0 comments on commit 383468b

Please sign in to comment.