From 9f5763c4e543bc5f482c32e504315f5e5532398d Mon Sep 17 00:00:00 2001 From: Sliverkiss <1393579810@qq.com> Date: Fri, 3 Jan 2025 17:28:38 +0800 Subject: [PATCH] Update QingLong.js --- Utils/QingLong.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Utils/QingLong.js b/Utils/QingLong.js index dc88de8..ba460c2 100644 --- a/Utils/QingLong.js +++ b/Utils/QingLong.js @@ -282,7 +282,7 @@ function QingLong(HOST, Client_ID, Client_Secret) { */ async enableEnv(ids) { const options = { - url: `${this.host}open/envs/enable`, + url: `${this.host}/open/envs/enable`, method: "put", headers: { Authorization: `${this.token}`, @@ -312,7 +312,7 @@ function QingLong(HOST, Client_ID, Client_Secret) { */ async disableEnv(ids) { const options = { - url: `${this.host}open/envs/disable`, + url: `${this.host}/open/envs/disable`, method: "put", headers: { Authorization: `${this.token}`, @@ -342,7 +342,7 @@ function QingLong(HOST, Client_ID, Client_Secret) { */ async getEnvById(id) { const options = { - url: `${this.host}open/envs/${id}`, + url: `${this.host}/open/envs/${id}`, headers: { Authorization: `${this.token}`, },