mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 15:19:03 +08:00
feat: GUIforCores 请求增加参数 proxy, timeout
This commit is contained in:
parent
9e64a68481
commit
3f620700a4
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.324",
|
"version": "2.14.325",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
6
backend/src/vendor/open-api.js
vendored
6
backend/src/vendor/open-api.js
vendored
@ -382,6 +382,12 @@ export function HTTP(defaultOptions = { baseURL: '' }) {
|
|||||||
url: options.url,
|
url: options.url,
|
||||||
headers: options.headers,
|
headers: options.headers,
|
||||||
body: options.body,
|
body: options.body,
|
||||||
|
options: {
|
||||||
|
Proxy: options.proxy,
|
||||||
|
Timeout: options.timeout
|
||||||
|
? options.timeout / 1000
|
||||||
|
: 15,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
resolve({
|
resolve({
|
||||||
statusCode: response.status,
|
statusCode: response.status,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user