修改为msg

This commit is contained in:
San Liy 2023-12-22 00:21:19 +08:00
parent 4bb5167bd1
commit 73d5220835
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ def cmds(app, data):
parser.add_argument('-ust', '--ustatus', help='查询Gitea绑定状态', parser.add_argument('-ust', '--ustatus', help='查询Gitea绑定状态',
action="store_true") action="store_true")
args = parser.parse_args(sqt.args) args = parser.parse_args(sqt.args)
reply = ReplyMessage(id=sqt.message_id) reply = ReplyMessage(id=sqt.msg_id)
if args.validate: if args.validate:
state = secrets.token_urlsafe(16) state = secrets.token_urlsafe(16)
user = await User.filter(id=sqt.sender_id).get_or_none() user = await User.filter(id=sqt.sender_id).get_or_none()
@ -70,7 +70,7 @@ def cmds(app, data):
action="store_true") action="store_true")
args = parser.parse_args(sqt.args) args = parser.parse_args(sqt.args)
reply = ReplyMessage(id=sqt.message_id) reply = ReplyMessage(id=sqt.msg_id)
e: AsyncEnforcer = sqt.app.ctx.e e: AsyncEnforcer = sqt.app.ctx.e
msg = '' msg = ''
if args.addgroup: if args.addgroup:

View File

@ -132,7 +132,7 @@ class SioDecorator:
content=self._content, content=self._content,
room_id=room_id, room_id=room_id,
data=self.data, data=self.data,
message_id=message_id) msg_id=message_id)
try: try:
await func(sqt) await func(sqt)
except PrintMessage as e: except PrintMessage as e:
@ -159,4 +159,4 @@ class SioRequest:
sender_name: str = '' sender_name: str = ''
content: str = '' content: str = ''
room_id: Optional[int] = None room_id: Optional[int] = None
message_id: str = '' msg_id: str = ''