From 7534e322cc20753b1277bde04c90f99a1a844c19 Mon Sep 17 00:00:00 2001 From: alan Date: Fri, 25 Oct 2019 14:31:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20DEC-10620=20=E5=8F=A6=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=9C=B0=E6=96=B9=E4=B9=9F=E8=A6=81=E6=94=B9=E6=88=90?= =?UTF-8?q?encodeURI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/crud/decision.api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/crud/decision.api.ts b/src/modules/crud/decision.api.ts index 23223be..30813ab 100644 --- a/src/modules/crud/decision.api.ts +++ b/src/modules/crud/decision.api.ts @@ -45,7 +45,7 @@ export class DecisionApi implements Api { } getConnectionPool(name: string): Promise<{data?: ConnectionPoolType}> { - return requestGet(`pool/info?connectionName=${BI.encodeURIComponent(name)}`, {}); + return requestGet(`pool/info?connectionName=${encodeURI(name)}`, {}); } getConnectionStatus(name: string): Promise { From 2055013ef044dd215997d94f65a8935cd79855dd Mon Sep 17 00:00:00 2001 From: alan Date: Fri, 25 Oct 2019 14:36:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=94=B9=E6=88=90encodeURIComponent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/crud/crud.service.ts | 2 +- src/modules/crud/decision.api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/crud/crud.service.ts b/src/modules/crud/crud.service.ts index 1df6220..483b918 100644 --- a/src/modules/crud/crud.service.ts +++ b/src/modules/crud/crud.service.ts @@ -15,7 +15,7 @@ export function paramsSerializer(params: { [key: string]: any }) { let value = ''; if (BI.isObject(paramValue)) { - value = encodeURI(JSON.stringify(paramValue)); + value = encodeURIComponent(JSON.stringify(paramValue)); } else { value = paramValue; } diff --git a/src/modules/crud/decision.api.ts b/src/modules/crud/decision.api.ts index 30813ab..55096b1 100644 --- a/src/modules/crud/decision.api.ts +++ b/src/modules/crud/decision.api.ts @@ -45,7 +45,7 @@ export class DecisionApi implements Api { } getConnectionPool(name: string): Promise<{data?: ConnectionPoolType}> { - return requestGet(`pool/info?connectionName=${encodeURI(name)}`, {}); + return requestGet(`pool/info?connectionName=${encodeURIComponent(name)}`, {}); } getConnectionStatus(name: string): Promise {