koishi-plugin-ggcevo-game 1.6.51 → 1.6.52

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 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -5563,11 +5563,10 @@ async function updatePityCounter(ctx, handle, isWin) {
5563
5563
  __name(updatePityCounter, "updatePityCounter");
5564
5564
  async function checkSensitiveWord(ctx, content) {
5565
5565
  try {
5566
- const response = await ctx.http("get", `https://v.api.aa1.cn/api/api-mgc/index.php?msg=${encodeURIComponent(content)}`);
5567
- return response.data.num !== "1";
5566
+ const response = await ctx.http.get(`https://v.api.aa1.cn/api/api-mgc/index.php?msg=${encodeURIComponent(content)}`);
5567
+ return response.num === "1";
5568
5568
  } catch (error) {
5569
- console.error("敏感词查询失败:", error);
5570
- return false;
5569
+ return true;
5571
5570
  }
5572
5571
  }
5573
5572
  __name(checkSensitiveWord, "checkSensitiveWord");
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.6.51",
4
+ "version": "1.6.52",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [