Skip to content

Commit

Permalink
fix: 修改 Rhino 优化等级默认值为 0
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxxue committed Jul 21, 2023
1 parent 588f671 commit 5aad3ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ JDK 8

可选项

`-l` Rhino 优化等级 (例子: -l 5) ( 传参 -1 ~ 9 默认 9 )
`-l` Rhino 优化等级 (例子: -l 9) ( 传参 -1 ~ 9 默认 0 )

`-s` 禁用字符串加密 (程序默认会加密字符串, 命令中添加 `-s` 则禁用加密字符串)

Expand Down
4 changes: 2 additions & 2 deletions src/org/mozilla/mycode/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Main {
/**
* Rhino 加密等级
*/
public static Integer _level = 9;
public static Integer _level = 0;

/**
* 禁用加密
Expand Down Expand Up @@ -50,7 +50,7 @@ public static void main(String[] args) throws Exception {

// 输出目录 再创建一个唯一的文件夹 (使用当前时间精确到秒)
_outDirPath = Paths.get(outputDirPath, getTimeString()).toString();
_level = Integer.valueOf(cmd.getOptionValue('l', "9"));
_level = Integer.valueOf(cmd.getOptionValue('l', "0"));
_isNoEncryptString = cmd.hasOption('s');

System.out.println("===================================");
Expand Down

0 comments on commit 5aad3ba

Please sign in to comment.