深渊出场率数据更新为2.8

This commit is contained in:
CMHopeSunshine 2022-07-21 00:25:26 +08:00
parent cc4f8931be
commit 10853c79a4
2 changed files with 5 additions and 5 deletions

View File

@ -162,7 +162,7 @@ async def draw_role_card(uid, data):
bg_draw.text((411 + 317 * i, 1069), artifact['主属性']['属性名'], fill='white', font=get_font(25))
if artifact['主属性']['属性名'] not in ['生命值', '攻击力', '元素精通']:
bg_draw.text((408 + 317 * i, 1100), f"+{artifact['主属性']['属性值']}%", fill='white',
font=get_font(25, 'number.ttf'))
font=get_font(48, 'number.ttf'))
else:
bg_draw.text((408 + 317 * i, 1100), f"+{artifact['主属性']['属性值']}", fill='white',
font=get_font(48, 'number.ttf'))

View File

@ -13,7 +13,7 @@ headers = {
async def get_rate(type: str = 'role'):
url = f'https://www.youchuang.fun/gamerole/{type}Rate'
json_data = {
"version": "2.7"
"version": "2.8"
}
res = await aiorequests.post(url=url, headers=headers, json=json_data)
return res.json()
@ -22,7 +22,7 @@ async def get_rate(type: str = 'role'):
async def get_formation_rate(layer: int = 1):
url = 'https://www.youchuang.fun/gamerole/formationRate'
json_data = {
"version": "2.7",
"version": "2.8",
"layer": layer
}
res = await aiorequests.post(url=url, headers=headers, json=json_data)
@ -33,7 +33,7 @@ async def get_teammates_rate(name: str):
url = 'https://www.youchuang.fun/gamerole/teammatesRate'
json_data = {
"name": name,
"version": "2.7"
"version": "2.8"
}
res = await aiorequests.post(url=url, headers=headers, json=json_data)
return res.json()
@ -43,7 +43,7 @@ async def get_weapon_rate(name: str):
url = 'https://www.youchuang.fun/gamerole/getWeaponByName'
json_data = {
"name": name,
"version": "2.7"
"version": "2.8"
}
res = await aiorequests.post(url=url, headers=headers, json=json_data)
return res.json()