🐛 帮助图提高长度上限

This commit is contained in:
CMHopeSunshine 2022-11-26 20:25:24 +08:00
parent 689a7701d3
commit f18f0ad211
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ MATERIAL_API = 'https://api-takumi.mihoyo.com/event/e20200928calculate/v1/furnit
async def get_blueprint_data(share_code: int, user_id: Optional[str]) -> Tuple[Union[List[Item], str, int, None], Optional[str]]:
cookies: List[Union[PrivateCookie, PublicCookie]] = []
if user_id and (private_cookies := await PrivateCookie.filter(status=1).all()):
if user_id and (private_cookies := await PrivateCookie.filter(user_id=user_id, status=1).all()):
cookies.extend(private_cookies)
if public_cookies := await PublicCookie.filter(status__in=[1, 2]).all():
cookies.extend(public_cookies)

View File

@ -25,7 +25,7 @@ async def draw_plugin_card(plugin: PluginInfo):
async def draw_help(plugin_list: List[PluginInfo]):
bg = PMImage(await load_image(RESOURCE_BASE_PATH / 'general' / 'bg.png'))
img = PMImage(size=(1080, 10000), color=(255, 255, 255, 0), mode='RGBA')
img = PMImage(size=(1080, 500 * len(plugin_list)), color=(255, 255, 255, 0), mode='RGBA')
orange_line = await load_image(RESOURCE_BASE_PATH / 'general' / 'orange.png')
orange_name_bg = await load_image(RESOURCE_BASE_PATH / 'general' / 'orange_card.png')
black_line = await load_image(RESOURCE_BASE_PATH / 'general' / 'black2.png')