📝 更新README

This commit is contained in:
CMHopeSunshine 2022-07-23 16:04:50 +08:00
parent 10853c79a4
commit e0e9cba65a
4 changed files with 16 additions and 20 deletions

View File

@ -1,5 +1,4 @@
import datetime
from distutils.log import info
import re
from asyncio import sleep
@ -9,12 +8,6 @@ from ..utils.auth_util import get_headers, get_sign_headers, get_use_cookie, get
from ..utils.db_util import get_private_cookie, update_cookie_cache, update_private_cookie
from ..utils.decorator import cache
from httpx import AsyncClient
from nonebot import logger
o_url = 'https://api-takumi.mihoyo.com'
async def get_abyss_data(user_id, uid, schedule_type="1", use_cache=True):
server_id = "cn_qd01" if uid[0] == '5' else "cn_gf01"
@ -202,7 +195,6 @@ async def get_sign_info(uid):
'Cookie': cookie['cookie'],
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS '
'X) AppleWebKit/605.1.15 (KHTML, like Gecko) miHoYoBBS/2.11.1',
}
params = {
'act_id': 'e202009291139501',
@ -271,13 +263,10 @@ async def get_enka_data(uid):
async def get_stoken_by_login_ticket(loginticket, mys_id):
async with AsyncClient() as client:
req = await client.get(
url=o_url + '/auth/api/getMultiTokenByLoginTicket',
params={
'login_ticket': loginticket,
'token_types': '3',
'uid': mys_id
}
)
req = await aiorequests.get(url='https://api-takumi.mihoyo.com/auth/api/getMultiTokenByLoginTicket',
params={
'login_ticket': loginticket,
'token_types': '3',
'uid': mys_id
})
return req.json()

View File

@ -24,7 +24,7 @@ async def draw_rate_rank(type: str = 'role', mode: str = 'used'):
bg_img = Image.new('RGBA', (1080, top_img.height + col * 220 + bottom_img.height + 50))
bg_img.paste(top_img, (0, 0))
bg_draw = ImageDraw.Draw(bg_img)
bg_draw.text((70, 55), '2.7深境螺旋登场率排行榜', fill='black', font=get_font(40, 'msyhbd.ttc'))
bg_draw.text((70, 55), '2.8深境螺旋登场率排行榜', fill='black', font=get_font(40, 'msyhbd.ttc'))
bg_draw.text((70, 110), f'当前共{data["result"]["userCount"]}份样本数据', fill='black', font=get_font(35))
for i in range(0, col + 1):
bg_img.paste(body_img, (0, top_img.height + i * body_img.height))
@ -52,7 +52,7 @@ async def draw_teams_rate(floor='上半半'):
bg_img = Image.new('RGBA', (1080, top_img.height + 10 * body_img.height + bottom_img.height - 130))
bg_img.paste(top_img, (0, 0))
bg_draw = ImageDraw.Draw(bg_img)
bg_draw.text((70, 55), f'2.7深境螺旋阵容出场率 | {floor}', fill='black', font=get_font(40, 'msyhbd.ttc'))
bg_draw.text((70, 55), f'2.8深境螺旋阵容出场率 | {floor}', fill='black', font=get_font(40, 'msyhbd.ttc'))
bg_draw.text((70, 110), f'当前共{data["result"]["userCount"]}份样本数据', fill='black', font=get_font(35))
for i in range(0, 10):
bg_img.paste(body_img, (0, top_img.height + i * body_img.height))

View File

@ -56,6 +56,9 @@
## 丨更新日志
> README只展示最近更新全部更新日志详见[这里](https://github.com/CMHopeSunshine/LittlePaimon/blob/nonebot2/UPDATE_LOG.md)
### 近期进行全新版本重构,具体详见`Bot`分支,本分支暂缓更新,预计一到两周内重构完成。
+ 7.14
- ysd支持`鹿野院平藏`,增加`枫原万叶、鹿野院平藏`伤害计算
+ 7.15
@ -68,6 +71,8 @@
- `ssbq`修复没有派遣时会报错的bug
+ 7.19
- 新增`米游币自动获取`#124不确保一定可用如产生其他bug请反馈
+ 7.23
- 深渊登场率数据改为2.8
## 丨功能列表

View File

@ -91,4 +91,6 @@
- `sy`没有绑定cookie时将不再错误的展示空阵容信息
- `ssbq`修复没有派遣时会报错的bug
+ 7.19
- 新增`米游币自动获取`#124不确保一定可用如产生其他bug请反馈
- 新增`米游币自动获取`#124不确保一定可用如产生其他bug请反馈
+ 7.23
- 深渊登场率数据改为2.8