From 73d5220835f2c12b5d59757124d0c6e2465a1861 Mon Sep 17 00:00:00 2001 From: adk23333 <2633103794@qq.com> Date: Fri, 22 Dec 2023 00:21:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAmsg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmds.py | 4 ++-- sio_model.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmds.py b/cmds.py index a3a0c32..d583840 100644 --- a/cmds.py +++ b/cmds.py @@ -24,7 +24,7 @@ def cmds(app, data): parser.add_argument('-ust', '--ustatus', help='查询Gitea绑定状态', action="store_true") args = parser.parse_args(sqt.args) - reply = ReplyMessage(id=sqt.message_id) + reply = ReplyMessage(id=sqt.msg_id) if args.validate: state = secrets.token_urlsafe(16) user = await User.filter(id=sqt.sender_id).get_or_none() @@ -70,7 +70,7 @@ def cmds(app, data): action="store_true") args = parser.parse_args(sqt.args) - reply = ReplyMessage(id=sqt.message_id) + reply = ReplyMessage(id=sqt.msg_id) e: AsyncEnforcer = sqt.app.ctx.e msg = '' if args.addgroup: diff --git a/sio_model.py b/sio_model.py index 877ae38..86f8f43 100644 --- a/sio_model.py +++ b/sio_model.py @@ -132,7 +132,7 @@ class SioDecorator: content=self._content, room_id=room_id, data=self.data, - message_id=message_id) + msg_id=message_id) try: await func(sqt) except PrintMessage as e: @@ -159,4 +159,4 @@ class SioRequest: sender_name: str = '' content: str = '' room_id: Optional[int] = None - message_id: str = '' + msg_id: str = ''