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.
- package/lib/index.js +3 -4
- 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(
|
|
5567
|
-
return response.
|
|
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
|
-
|
|
5570
|
-
return false;
|
|
5569
|
+
return true;
|
|
5571
5570
|
}
|
|
5572
5571
|
}
|
|
5573
5572
|
__name(checkSensitiveWord, "checkSensitiveWord");
|