修改为msg
This commit is contained in:
parent
4bb5167bd1
commit
73d5220835
4
cmds.py
4
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:
|
||||
|
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user