koishi-plugin-ets2-tools-tmp 3.2.1 → 3.3.0
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/evmOpenApi.js
CHANGED
package/lib/api/truckersMpApi.js
CHANGED
package/lib/api/truckyAppApi.js
CHANGED
|
@@ -165,7 +165,7 @@ module.exports = async (ctx, cfg, session, tmpId) => {
|
|
|
165
165
|
const steamApiKey = cfg.steamApi?.key;
|
|
166
166
|
if (steamApiKey) {
|
|
167
167
|
const steamId = playerInfo.data.steamId;
|
|
168
|
-
const url = `https://evmapi.
|
|
168
|
+
const url = `https://evmapi.cxnnn.cn/proxy/steam/IPlayerService/GetOwnedGames/v1?key=${steamApiKey}&steamid=${steamId}&appids_filter[0]=227300&appids_filter[1]=270880&include_played_free_games=1`;
|
|
169
169
|
const response = await ctx.http.get(url);
|
|
170
170
|
if (response.response && response.response.game_count > 0) {
|
|
171
171
|
for (const game of response.response.games) {
|
|
@@ -189,7 +189,7 @@ module.exports = async (ctx, cfg, session, tmpId) => {
|
|
|
189
189
|
if (!steamApiKey) {
|
|
190
190
|
return { ets2: null, ats: null };
|
|
191
191
|
}
|
|
192
|
-
const url = `https://
|
|
192
|
+
const url = `https://evmapi.cxnnn.cn/proxy/steam/IPlayerService/GetOwnedGames/v1?key=${steamApiKey}&steamid=${steamId}&appids_filter[0]=227300&appids_filter[1]=270880&include_played_free_games=1`;
|
|
193
193
|
const response = await ctx.http.get(url);
|
|
194
194
|
const result = { ets2: null, ats: null };
|
|
195
195
|
|