perf:默认开启加密
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user