perf:默认开启加密

This commit is contained in:
曾文豪
2024-04-15 20:03:02 +08:00
parent 35e5fc003c
commit 9efce33810
4 changed files with 24 additions and 13 deletions

View File

@@ -133,7 +133,7 @@ async function get(url, params = {}, options = {}) {
async function post(url, data = {}, options = {}) {
let newData = {}
if (GlobalConfig.getConfig().encryptBody) {
if (Storage.getEncryptBody()) {
newData.encryptData = crypto.encrypt(JSON.stringify(data));
} else {
newData = {...data};