@sjtdev/koishi-plugin-dota2tracker 1.1.5-beta.3 → 1.1.5-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +3 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1485,6 +1485,9 @@ async function apply(ctx, config) {
1485
1485
  session.send((!("dt_7_36" in ctx.database.tables) ? "初次使用," : "") + "正在获取数据……");
1486
1486
  await ctx.model.extend("dt_7_36", { id: "integer", data: "string" });
1487
1487
  const page = await ctx.puppeteer.page();
1488
+ await page.setExtraHTTPHeaders({
1489
+ "Accept-Language": "zh-CN,zh;q=0.9"
1490
+ });
1488
1491
  await page.goto("https://www.dota2.com/patches/7.36");
1489
1492
  await page.waitForSelector("body > div:nth-of-type(2) > div:first-of-type > div:nth-of-type(2) > div:nth-of-type(3) > div:nth-of-type(5) > div:nth-of-type(2) > div:nth-of-type(1)");
1490
1493
  await page.evaluate(() => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sjtdev/koishi-plugin-dota2tracker",
3
3
  "description": "",
4
- "version": "1.1.5-beta.3",
4
+ "version": "1.1.5-beta.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [