提交 2cc183b4 authored 作者: 钟是志's avatar 钟是志

加密增加参数映射

上级 737edf5a
......@@ -187,14 +187,12 @@ export async function giveBase16EnCode(datas, url) { // 全局加解密函数.
}
}
if(item.yinShe){ // 映射参数字段.
if (item.yinShe) { // 映射参数字段.
datas.isBase = true;
for(let oldKey in item.yinShe){
for (let oldKey in item.yinShe) {
let newKey = item.yinShe[oldKey];
if(datas[oldKey]){
datas[newKey] = datas[oldKey];
delete datas[oldKey];
}
datas[newKey] = datas[oldKey];
delete datas[oldKey];
}
}
return datas;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论