Browse Source

无JIRA任务 包装一下通用解密方法

es6
windy 4 years ago
parent
commit
966d59c408
  1. 15
      src/core/base.js

15
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

Loading…
Cancel
Save