Compare commits

...

2 Commits

Author SHA1 Message Date
73d5220835 修改为msg 2023-12-22 00:21:19 +08:00
4bb5167bd1 添加漏的 2023-12-22 00:21:08 +08:00
2 changed files with 5 additions and 4 deletions

View File

@ -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:
@ -109,6 +109,7 @@ def cmds(app, data):
action="store_true")
args = parser.parse_args(sqt.args)
reply = ReplyMessage(id=sqt.msg_id)
e: AsyncEnforcer = sqt.app.ctx.e
msg = ''
if args.rmgroup:

View File

@ -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 = ''