From 80b643f155834f6c08d8ad82cddf0dcb2d08f76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=B6?= <1936472877@qq.com> Date: Tue, 17 Dec 2024 11:41:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=88=90=E5=B0=B1=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/achievement.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/achievement.js b/apps/achievement.js index 0e4ce92..f851a2f 100644 --- a/apps/achievement.js +++ b/apps/achievement.js @@ -33,12 +33,12 @@ export const rule = { } e.reply(['在查了...在查了...']) // 先获取游戏的成就列表 - const achievementsByGame = await api.ISteamUserStats.GetSchemaForGame(appid) + const achievementsByGame = await api.ISteamUserStats.GetSchemaForGame(appid).catch(() => {}) if (!achievementsByGame || !achievementsByGame.availableGameStats) { await e.reply([segment.at(uid), `\n没有找到${appid}的成就信息`]) return true } - const achievementsByUser = await api.ISteamUserStats.GetUserStatsForGame(appid, steamId) + const achievementsByUser = await api.ISteamUserStats.GetUserStatsForGame(appid, steamId).catch(() => {}) if (!achievementsByUser || !achievementsByUser.achievements) { await e.reply([segment.at(uid), `\n没有找到${steamId}在${appid}的成就信息`]) return true