Ljzd-PRO / nonebot-plugin-mystool

QQ聊天、频道机器人插件 | 米游社工具-每日米游币任务、游戏签到、商品兑换、免抓包登录、原神崩铁便笺提醒
https://pypi.org/project/nonebot-plugin-mystool
MIT License
420 stars 52 forks source link

抢到商品后删除兑换计划报错 #284

Closed xzmssr closed 6 months ago

xzmssr commented 7 months ago

使用版本2.3.0,以下是错误信息,敏感内容已做删减修改:

04-18 16:37:26 [SUCCESS] nonebot | OneBot V11 3088 | [message.private.friend]: Message 700231345 from 2927 '107'                             
04-18 16:37:26 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.command.exchange, lineno=38)              
04-18 16:37:26 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.command.exchange, lineno=38) running complete                      
04-18 16:37:26 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.command.exchange, lineno=38) failed.                      
  File "/home/mystool/.venv/lib/python3.11/site-packages/nonebot/drivers/fastapi.py", line 186, in run                                                   
  File "/home/mystool/.venv/lib/python3.11/site-packages/uvicorn/server.py", line 61, in run                                                             
    return asyncio.run(self.serve(sockets=sockets))                                                                                                      
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run                                                                                  
    return runner.run(main)                                                                                                                              
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run                                                                                  
    return self._loop.run_until_complete(task)                                                                                                           
  File "/home/mystool/.venv/lib/python3.11/site-packages/nonebot/message.py", line 476, in check_and_run_matcher                                         
    await _run_matcher(                                                                                                                                  
> File "/home/mystool/.venv/lib/python3.11/site-packages/nonebot/message.py", line 428, in _run_matcher                                                  
    await matcher.run(bot, event, state, stack, dependency_cache)                                                                                        
  File "/home/mystool/.venv/lib/python3.11/site-packages/nonebot/internal/matcher/matcher.py", line 842, in run                                          
    await self.simple_run(bot, event, state, stack, dependency_cache)                                                                                    
  File "/home/mystool/.venv/lib/python3.11/site-packages/nonebot/internal/matcher/matcher.py", line 817, in simple_run                                   
    await handler(                                                                                                                                       
  File "/home/mystool/.venv/lib/python3.11/site-packages/nonebot/dependencies/__init__.py", line 106, in __call__                                        
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)                                                                                  
  File "/home/mystool/.venv/lib/python3.11/site-packages/nonebot_plugin_mystool/command/exchange.py", line 223, in _                                     
    plans.remove(plan)
KeyError: ExchangePlan(good=Good(type=4, next_time=1714017600, status='online', sale_start_time='1713412800', time_by_detail=None, next_num=30, account_e
    xchange_num=0, account_cycle_limit=1, account_cycle_type='forever', game_biz='bbs_cn', game='bbs', unlimit=False, name=None, goods_name='【米游社】米哈游
    午限定-吼里风扇', goods_id='2024040114352', price=18500, icon='https://bbs-static.miyoushe.com/static/2024/04/01/266cb504a867ede38477fb0a75165196_17357
    48171422320689.JPG'), address=Address(connect_areacode='+86', connect_mobile='1897', province_name='省', city_name='市', county_name='
    区', addr_ext='地址', connect_name='姓名', id='3649'), account=UserAccount(phone_number='18719', cookies=BBSCookies(stuid='1137', ltu
    id='1135', account_id='1137', login_uid='117', stoken_v1='WRzlQO6GZqwGz', stoken_v2='v2_Z4oBDR96UGcLN3GH5XpwJu
    rZ89rpGtu3OhD7dM7AE=', cookie_token='vZLoHZ0ae
    80iQmfH9AOI8huOxx', login_ticket='yGM8Ly4Zp9rVW', ltoken='2BtyK71HmjWqkuTCksszgb1m', mid='0pcm
    dwmn_mhy'), address=Address(connect_areacode='+86', connect_mobile='18', province_name='省', city_name='市', county_name='区', add
    r_ext='地址', connect_name='姓名', id='3649'), device_id_ios='B0A59C3', device_id_android='5F32
    DA02283903', device_fp='38d7f8b1c77ca', enable_mission=True, enable_game_sign=True, enable_resin=False, enable_weibo=False, platform='ios', mission_games
    =['GenshinImpactMission'], user_stamina_threshold=240, user_resin_threshold=160, weibo_cookie='', weibo_params=''), game_record=None)                    
xzmssr commented 7 months ago

运行环境为群晖Docker