mirror of
https://github.com/Sliverkiss/QuantumultX.git
synced 2025-12-18 15:55:05 +08:00
Update QingLong.js
This commit is contained in:
@@ -282,7 +282,7 @@ function QingLong(HOST, Client_ID, Client_Secret) {
|
|||||||
*/
|
*/
|
||||||
async enableEnv(ids) {
|
async enableEnv(ids) {
|
||||||
const options = {
|
const options = {
|
||||||
url: `${this.host}open/envs/enable`,
|
url: `${this.host}/open/envs/enable`,
|
||||||
method: "put",
|
method: "put",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `${this.token}`,
|
Authorization: `${this.token}`,
|
||||||
@@ -312,7 +312,7 @@ function QingLong(HOST, Client_ID, Client_Secret) {
|
|||||||
*/
|
*/
|
||||||
async disableEnv(ids) {
|
async disableEnv(ids) {
|
||||||
const options = {
|
const options = {
|
||||||
url: `${this.host}open/envs/disable`,
|
url: `${this.host}/open/envs/disable`,
|
||||||
method: "put",
|
method: "put",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `${this.token}`,
|
Authorization: `${this.token}`,
|
||||||
@@ -342,7 +342,7 @@ function QingLong(HOST, Client_ID, Client_Secret) {
|
|||||||
*/
|
*/
|
||||||
async getEnvById(id) {
|
async getEnvById(id) {
|
||||||
const options = {
|
const options = {
|
||||||
url: `${this.host}open/envs/${id}`,
|
url: `${this.host}/open/envs/${id}`,
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `${this.token}`,
|
Authorization: `${this.token}`,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user