提交修改

This commit is contained in:
quyixiao 2021-05-11 14:59:22 +08:00
parent b23bb5b4ed
commit f0e7b633b5
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ public class DeCommand extends BaseCommand<Tuple> implements ICommand<Tuple>{
@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);
}

View File

@ -41,7 +41,7 @@ public class EnCommand extends BaseCommand<Tuple> implements ICommand<Tuple>{
@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);
}

View File

@ -37,7 +37,7 @@ public class TDeCommand extends BaseCommand<Tuple> implements ICommand<Tuple>{
@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);
}

View File

@ -37,7 +37,7 @@ public class TEnCommand extends BaseCommand<Tuple> implements ICommand<Tuple>{
@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);
}