From 966d59c4084ae0aae772c116a105f31d19684345 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 4 Mar 2020 16:27:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E5=8C=85?= =?UTF-8?q?=E8=A3=85=E4=B8=80=E4=B8=8B=E9=80=9A=E7=94=A8=E8=A7=A3=E5=AF=86?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/base.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/core/base.js b/src/core/base.js index 9138a4a5c0..f4a58bfd43 100644 --- a/src/core/base.js +++ b/src/core/base.js @@ -924,6 +924,21 @@ if (!_global.BI) { } }, + /** + * 通用解密方法 + * @param type 解密方式 + * @param text 文本 + * @param key 种子 + * @return {*} + */ + decrypt: function (type, text, key) { + switch (type) { + case BI.CRYPT_TYPE.AES: + default: + return BI.aesDecrypt(text, key); + } + }, + /** * 对字符串中的'和\做编码处理 * @static