koishi-plugin-ggcevo-game 1.2.33 → 1.2.34

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 +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1306,7 +1306,7 @@ ${itemDetails.join("\n")}`;
1306
1306
  pageMaxDate = recordDate;
1307
1307
  }
1308
1308
  const handle = `${record.profile.regionId}-S2-${record.profile.realmId}-${record.profile.profileId}`;
1309
- const [ggcrank] = await ctx.database.get("ggcevo_rank", { handle });
1309
+ const [ggcrank] = await ctx.database.get("ggcevo_rank", { handle, rankseason: config.rankseason });
1310
1310
  await ctx.database.upsert("ggcevo_rank", [{
1311
1311
  handle,
1312
1312
  name: record.profile.name,
@@ -1367,7 +1367,7 @@ ${itemDetails.join("\n")}`;
1367
1367
  pageMaxDate = recordDate;
1368
1368
  }
1369
1369
  const handle = `${record.profile.regionId}-S2-${record.profile.realmId}-${record.profile.profileId}`;
1370
- const [ggcrank] = await ctx.database.get("ggcevo_rank", { handle });
1370
+ const [ggcrank] = await ctx.database.get("ggcevo_rank", { handle, rankseason: config.rankseason });
1371
1371
  await ctx.database.upsert("ggcevo_rank", [{
1372
1372
  handle,
1373
1373
  name: record.profile.name,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.2.33",
4
+ "version": "1.2.34",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [