mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
🐛 fix添加stoken
无响应bug
This commit is contained in:
parent
e0e9cba65a
commit
9adcbf9a5d
@ -825,6 +825,7 @@ async def get_mys_coin_handler(event: MessageEvent, msg: Message = CommandArg())
|
||||
if not cookie:
|
||||
await get_mys_coin.finish('你的该uid还没绑定cookie哦,先用ysb绑定吧')
|
||||
stoken = sk[0][4]
|
||||
await get_mys_coin.send('开始执行米游社获取,请稍等哦~')
|
||||
get_coin_task = MihoyoBBSCoin(stoken)
|
||||
data = await get_coin_task.task_run()
|
||||
msg = "米游币获取完成\n" + data
|
||||
@ -887,4 +888,4 @@ async def add_stoken_handler(event: MessageEvent, msg: Message = CommandArg()):
|
||||
msg = f'stoken绑定成功啦!'
|
||||
if event.message_type != 'private':
|
||||
msg += '\n当前是在群聊里绑定,建议旅行者把stoken撤回哦!'
|
||||
await ysb.finish(MsgBd.Text(msg), at_sender=True)
|
||||
await add_stoken.finish(MsgBd.Text(msg), at_sender=True)
|
||||
|
Loading…
Reference in New Issue
Block a user