Compare commits
No commits in common. "73d5220835f2c12b5d59757124d0c6e2465a1861" and "ed71cadd1de153bab711a7a5dcaa4b0e91b42373" have entirely different histories.
73d5220835
...
ed71cadd1d
5
cmds.py
5
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.msg_id)
|
||||
reply = ReplyMessage(id=sqt.message_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.msg_id)
|
||||
reply = ReplyMessage(id=sqt.message_id)
|
||||
e: AsyncEnforcer = sqt.app.ctx.e
|
||||
msg = ''
|
||||
if args.addgroup:
|
||||
@ -109,7 +109,6 @@ 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:
|
||||
|
@ -132,7 +132,7 @@ class SioDecorator:
|
||||
content=self._content,
|
||||
room_id=room_id,
|
||||
data=self.data,
|
||||
msg_id=message_id)
|
||||
message_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
|
||||
msg_id: str = ''
|
||||
message_id: str = ''
|
||||
|
Loading…
Reference in New Issue
Block a user