diff --git a/src/core/base.js b/src/core/base.js index 9138a4a5c..f4a58bfd4 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