Skip to content

Commit

Permalink
fix: 好像没用
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed Nov 29, 2024
1 parent 3c8d02c commit 4f37a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/api/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion models/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4f37a99

Please sign in to comment.