Compare commits

..

No commits in common. "73d5220835f2c12b5d59757124d0c6e2465a1861" and "ed71cadd1de153bab711a7a5dcaa4b0e91b42373" have entirely different histories.

2 changed files with 4 additions and 5 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.msg_id) reply = ReplyMessage(id=sqt.message_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.msg_id) reply = ReplyMessage(id=sqt.message_id)
e: AsyncEnforcer = sqt.app.ctx.e e: AsyncEnforcer = sqt.app.ctx.e
msg = '' msg = ''
if args.addgroup: if args.addgroup:
@ -109,7 +109,6 @@ 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.msg_id)
e: AsyncEnforcer = sqt.app.ctx.e e: AsyncEnforcer = sqt.app.ctx.e
msg = '' msg = ''
if args.rmgroup: if args.rmgroup:

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,
msg_id=message_id) message_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
msg_id: str = '' message_id: str = ''