提交 fa9be0c6 编写于 作者: 5 592767809

加载器抽取优化

上级 c2780648
此差异已折叠。
此差异已折叠。
node webpack_mixer.js -l app.f24d08e9.js -m login.5170f665.js -o webpack_out.js
\ No newline at end of file
node webpack_mixer.js -l app.f24d08e9.js -m login.5170f665.js -m chunk-vendors.bb13f90f.js -o webpack_out.js
\ No newline at end of file
let n = require('./webpack_out');
let DCSAPPClientAPI = require('./DCSAPPClientAPI-0.0.0.7');
let password_enc = n('56f2');
let u = "kcn071805buj05k313ql" , c = "4sig52dR0Xxw2raF0v37dngO3DiiR1PaITXS4ddJiRb1xfjSjAUQ6P9VuyxfaiZ8gElGKMcSskm70yGY0ZrQEQ==";
console.log(n);
\ No newline at end of file
let data = {
"txnCommCom":{"txnIttChnlId":"C0081234567890987654321","txnIttChnlCgyCode":"BC01C101"},
"txnBodyCom":{
"loginType":"AU01","loginNo":"13088888888",
"loginPassword":password_enc.a("a123456"),
"acctType":"10","vcodeId":"1641482664426","vcode":"y9sb",
"sessionId":"fe823fd1-cb32-453f-a037-b4800037767d","clientId":"000000000"
}
};
let t = DCSAPPClientAPI.parseUtf8StringToArray(JSON.stringify(data));
let n2 = DCSAPPClientAPI.workKey_nego_and_data_encrypt_cpa(false, u, c, t, false);
let paypload = n2.keySM2Cipher;
console.log(paypload);
\ No newline at end of file
此差异已折叠。
......@@ -28,7 +28,7 @@ function run(loader_path, out_path, modular_path) {
let export_function = null;
traverse(loader_ast, {
FunctionDeclaration(path){
if(path.toString().includes("exports:")){
if(path.toString().includes("exports:") && export_function == null){
export_function = path.node.id.name
}
}
......@@ -40,7 +40,7 @@ function run(loader_path, out_path, modular_path) {
for (let i = 0; i < loader_body.length; i++){
let item = loader_body[i];
if(item.type === 'ExpressionStatement'){
if(item.expression.type === 'SequenceExpression' && item.expression.expressions[0].left.type === 'MemberExpression' && item.expression.expressions[0].left.object.type === 'Identifier' && item.expression.expressions[0].left.object.name === export_function){
if(item.expression.type === 'SequenceExpression' && item.expression.expressions[0].type === 'AssignmentExpression' && item.expression.expressions[0].left.type === 'MemberExpression' && item.expression.expressions[0].left.object.type === 'Identifier' && item.expression.expressions[0].left.object.name === export_function){
let j = 1;
while (j < item.expression.expressions.length){
let item2 = item.expression.expressions[j];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册