From 057f9d804c23daf9bbb64daff0aff31ac760f537 Mon Sep 17 00:00:00 2001 From: "Austin.Duan" Date: Fri, 10 Feb 2023 11:40:11 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"REPORT-86413=20feat:=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=BF=9E=E6=8E=A5=E9=80=82=E9=85=8D=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E5=8A=A0=E8=A7=A3=E5=AF=86=E6=94=B9=E9=80=A0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 1cfe9d2ddba0908aee62c6fa43a659068e027347. --- src/modules/crud/decision.api.ts | 6 ++++-- types/globals.d.ts | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/crud/decision.api.ts b/src/modules/crud/decision.api.ts index 782779d..b23c31b 100644 --- a/src/modules/crud/decision.api.ts +++ b/src/modules/crud/decision.api.ts @@ -107,11 +107,13 @@ export class DecisionApi implements Api { } getCipher(password: string) { - return Dec.Utils['getTransCipherText'](password); + return BI.Providers.getProvider('dec.provider.cipher') + .getCipher(password); } getPlain(cipher: string) { - return Dec.Utils['getPlainText'](cipher); + return BI.Providers.getProvider('dec.provider.cipher') + .getPlain(cipher); } getHyperlink(name: string) { diff --git a/types/globals.d.ts b/types/globals.d.ts index f936556..4d1c456 100644 --- a/types/globals.d.ts +++ b/types/globals.d.ts @@ -13,7 +13,6 @@ declare const Dec: { connected: boolean; }; system: {}; - Utils: {}, personal: { username: string; };