koishi-plugin-ets2-tools-tmp 2.5.5 → 2.5.7
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/api/truckersMpApi.js
CHANGED
package/lib/api/truckyAppApi.js
CHANGED
|
@@ -57,7 +57,7 @@ module.exports = async (ctx, cfg, session, tmpId) => {
|
|
|
57
57
|
return '玩家不存在';
|
|
58
58
|
}
|
|
59
59
|
else if (playerInfo.error) {
|
|
60
|
-
return '
|
|
60
|
+
return '玩家信息查询失败,请重试';
|
|
61
61
|
}
|
|
62
62
|
// 查询线上信息
|
|
63
63
|
let playerMapInfo = await truckyAppApi.online(ctx.http, tmpId);
|
|
@@ -182,7 +182,7 @@ module.exports = async (ctx, cfg, session, tmpId) => {
|
|
|
182
182
|
if (!steamApiKey) {
|
|
183
183
|
return { ets2: null, ats: null };
|
|
184
184
|
}
|
|
185
|
-
const url = `https://
|
|
185
|
+
const url = `https://api.114512.xyz/steam/IPlayerService/GetOwnedGames/v1?key=${steamApiKey}&steamid=${steamId}&appids_filter[0]=227300&appids_filter[1]=270880&include_played_free_games=1`;
|
|
186
186
|
const response = await ctx.http.get(url);
|
|
187
187
|
const result = { ets2: null, ats: null };
|
|
188
188
|
|