@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.
- package/lib/index.js +3 -0
- 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(() => {
|