Skip to content

Commit

Permalink
更新 __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Jan 6, 2025
1 parent 0514ff0 commit b5d58b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/chain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,14 @@ def post_message(self, message: Notification) -> None:
continue
else:
# 按原消息发送全体
send_orignal = True
if not admin_sended:
send_orignal = True
break
# 按设定发送
self.eventmanager.send_event(etype=EventType.NoticeMessage,
data={**send_message.dict(), "type": send_message.mtype})
self.run_module("post_message", message=send_message)
if not send_orignal or admin_sended:
if not send_orignal:
return
# 发送消息事件
self.eventmanager.send_event(etype=EventType.NoticeMessage, data={**message.dict(), "type": message.mtype})
Expand Down

0 comments on commit b5d58b8

Please sign in to comment.