Skip to content

Commit

Permalink
update shop.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fllesser committed Jan 9, 2025
1 parent 3425e8f commit 40fb7b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nonebot_plugin_fortnite/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ async def screenshot_shop_img() -> Path:
viewport={"width": 1320, "height": 2868}, # 设置为 iPhone 16 Pro Max 分辨率
user_agent="Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15A5341f Safari/604.1"
)
page = await context.new_page()
await page.goto(url)
await page.wait_for_load_state('load') # 等待页面加载完毕
await page.screenshot(path=shop_file)
await browser.close()
page = await context.new_page()
await page.goto(url)
await page.wait_for_load_state('load') # 等待页面加载完毕
await page.screenshot(path=shop_file)
await browser.close()
except Exception as e:
raise e
finally:
Expand Down

0 comments on commit 40fb7b2

Please sign in to comment.