From 4f37a997774efef54a7ec5bedd3ae580022882f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=B6?= <1936472877@qq.com> Date: Fri, 29 Nov 2024 20:51:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A5=BD=E5=83=8F=E6=B2=A1=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/api/store.js | 2 +- models/utils/request.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/api/store.js b/models/api/store.js index 3055494..98e7340 100644 --- a/models/api/store.js +++ b/models/api/store.js @@ -5,7 +5,7 @@ import { Config } from '#components' const getBaseURL = () => { const url = 'https://store.steampowered.com' if (Config.steam.commonProxy) { - return Config.steam.commonProxy.replace('{{url}}', encodeURIComponent(url)) + return Config.steam.commonProxy.replace('{{url}}', url) } else if (Config.steam.storeProxy) { return Config.steam.storeProxy?.replace(/\/$/, '') } else { diff --git a/models/utils/request.js b/models/utils/request.js index 363c8c9..c9ceb49 100644 --- a/models/utils/request.js +++ b/models/utils/request.js @@ -13,7 +13,7 @@ export default async function request (url, options = {}) { const steamApi = (() => { const url = 'https://api.steampowered.com' if (Config.steam.commonProxy) { - return Config.steam.commonProxy.replace('{{url}}', encodeURIComponent(url)) + return Config.steam.commonProxy.replace('{{url}}', url) } else if (Config.steam.apiProxy) { return Config.steam.apiProxy.replace(/\/$/, '') } else {