🐛 补充斫峰之刃抽卡资源,修复获取抽卡记录可能出现的bug

This commit is contained in:
CMHopeSunshine 2022-08-04 12:54:53 +08:00
parent fd7bc914e8
commit 3a552e3ee6
6 changed files with 17 additions and 5 deletions

View File

@ -108,7 +108,7 @@ async def update_ckjl(event: MessageEvent, msg: Message = CommandArg()):
if apiRes != 'OK': if apiRes != 'OK':
await gacha_log_update.finish(apiRes, at_sender=True) await gacha_log_update.finish(apiRes, at_sender=True)
await gacha_log_update.send('抽卡记录开始获取,请给派蒙一点时间...') await gacha_log_update.send('抽卡记录开始获取,请给派蒙一点时间...')
await get_data(url) uid = await get_data(url)
local_data = data_path / f'gachaData-{uid}.json' local_data = data_path / f'gachaData-{uid}.json'
gacha_data = load_json(local_data) gacha_data = load_json(local_data)

View File

@ -1,4 +1,3 @@
import json
from pathlib import Path from pathlib import Path
from asyncio import sleep from asyncio import sleep
@ -89,3 +88,4 @@ async def get_data(url):
save_json(UIGF_data, data_path / f"UIGF_gachaData-{uid}.json") save_json(UIGF_data, data_path / f"UIGF_gachaData-{uid}.json")
# 写入xlsx # 写入xlsx
writeXLSX(uid, mergeData['gachaLog'], gachaQueryTypeIds) writeXLSX(uid, mergeData['gachaLog'], gachaQueryTypeIds)
return uid

View File

@ -411,7 +411,7 @@ async def _(event: MessageEvent, state: T_State):
await ysc.finish(total_result) await ysc.finish(total_result)
cookie_error_msg = '这个cookie无效哦请旅行者确认是否正确\n1.ck要登录mys帐号后获取,且不能退出登录\n\n获取cookie的教程\ndocs.qq.com/doc/DQ3JLWk1vQVllZ2Z1\n' cookie_error_msg = '这个cookie无效哦请旅行者确认是否正确\n获取cookie的教程\ndocs.qq.com/doc/DQ3JLWk1vQVllZ2Z1\n'
@ysb.handle() @ysb.handle()
@ -444,6 +444,7 @@ async def ysb_handler(event: MessageEvent, msg: Message = CommandArg()):
msg += '\n当前是在群聊里绑定建议旅行者把cookie撤回哦!' msg += '\n当前是在群聊里绑定建议旅行者把cookie撤回哦!'
await ysb.finish(MsgBd.Text(msg), at_sender=True) await ysb.finish(MsgBd.Text(msg), at_sender=True)
@ysbjc.handle() @ysbjc.handle()
@exception_handler() @exception_handler()
async def ysbjc_handler(event: MessageEvent, msg: Message = CommandArg()): async def ysbjc_handler(event: MessageEvent, msg: Message = CommandArg()):

View File

@ -76,6 +76,9 @@
- 修改请求enka用的`User-Agent` - 修改请求enka用的`User-Agent`
- 修复`ysd`中优菈的`菈`不能显示的问题 - 修复`ysd`中优菈的`菈`不能显示的问题
- 补充WIKI的`help` - 补充WIKI的`help`
+ 8.4
- 补充`斫峰之刃`抽卡资源
- 修复`获取抽卡记录`可能出现的bug
## 丨功能列表 ## 丨功能列表

View File

@ -101,3 +101,6 @@
- 修改请求enka用的`User-Agent` - 修改请求enka用的`User-Agent`
- 修复`ysd`中优菈的`菈`不能显示的问题 - 修复`ysd`中优菈的`菈`不能显示的问题
- 补充WIKI的`help` - 补充WIKI的`help`
+ 8.4
- 补充`斫峰之刃`抽卡资源
- 修复`获取抽卡记录`可能出现的bug

View File

@ -1296,7 +1296,7 @@
}, },
{ {
"path": "LittlePaimon/gacha_res/type.json", "path": "LittlePaimon/gacha_res/type.json",
"hash": "95ec53c3f3ae22b20216fc2683686ce1", "hash": "d715b36bd5754f2e5473a794f9f1e999",
"lock": true "lock": true
}, },
{ {
@ -4633,5 +4633,10 @@
"path": "LittlePaimon/优设标题黑.ttf", "path": "LittlePaimon/优设标题黑.ttf",
"hash": "f78122875a8fe70ab9b577cfb80c685b", "hash": "f78122875a8fe70ab9b577cfb80c685b",
"lock": true "lock": true
},
{
"path": "LittlePaimon/gacha_res/武器/斫峰之刃.png",
"hash": "c85e4a37f277f828e60a520d6adf7150",
"lock": true
} }
] ]