diff --git a/src/main/java/com/lz/modules/command/base1000/DeCommand.java b/src/main/java/com/lz/modules/command/base1000/DeCommand.java index 7ee9f4b3..fd75e5e3 100644 --- a/src/main/java/com/lz/modules/command/base1000/DeCommand.java +++ b/src/main/java/com/lz/modules/command/base1000/DeCommand.java @@ -37,7 +37,7 @@ public class DeCommand extends BaseCommand implements ICommand{ @Override public R process(Tuple tuple) throws Exception { String online = "RiZUH6CU9JK7x5LVou9d8Q1"; - String de = PAesUtil.decrypt(tokens[1], online); + String de = PAesUtil.decrypt(tokens[1].trim(), online); log.info("de data :" + de); return R.ok(250, de); } diff --git a/src/main/java/com/lz/modules/command/base1000/EnCommand.java b/src/main/java/com/lz/modules/command/base1000/EnCommand.java index e1e561f6..ccf1df2b 100644 --- a/src/main/java/com/lz/modules/command/base1000/EnCommand.java +++ b/src/main/java/com/lz/modules/command/base1000/EnCommand.java @@ -41,7 +41,7 @@ public class EnCommand extends BaseCommand implements ICommand{ @Override public R process(Tuple tuple) throws Exception { String online = "RiZUH6CU9JK7x5LVou9d8Q1"; - String de = PAesUtil.encrypt(tokens[1], online); + String de = PAesUtil.encrypt(tokens[1].trim(), online); log.info("de data :" + de); return R.ok(250, de); } diff --git a/src/main/java/com/lz/modules/command/base1000/TDeCommand.java b/src/main/java/com/lz/modules/command/base1000/TDeCommand.java index 4fd62b19..020743cd 100644 --- a/src/main/java/com/lz/modules/command/base1000/TDeCommand.java +++ b/src/main/java/com/lz/modules/command/base1000/TDeCommand.java @@ -37,7 +37,7 @@ public class TDeCommand extends BaseCommand implements ICommand{ @Override public R process(Tuple tuple) throws Exception { String test = "123456"; - String de = PAesUtil.decrypt(tokens[1], test); + String de = PAesUtil.decrypt(tokens[1].trim(), test); log.info("de data :" + de); return R.ok(250, de); } diff --git a/src/main/java/com/lz/modules/command/base1000/TEnCommand.java b/src/main/java/com/lz/modules/command/base1000/TEnCommand.java index 0daf2047..af6b6890 100644 --- a/src/main/java/com/lz/modules/command/base1000/TEnCommand.java +++ b/src/main/java/com/lz/modules/command/base1000/TEnCommand.java @@ -37,7 +37,7 @@ public class TEnCommand extends BaseCommand implements ICommand{ @Override public R process(Tuple tuple) throws Exception { String online = "123456"; - String de = PAesUtil.encrypt(tokens[1], online); + String de = PAesUtil.encrypt(tokens[1].trim(), online); log.info("ten data :" + de); return R.ok(250, de); }