|
@@ -61,6 +61,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
import java.util.concurrent.CompletableFuture;
|
|
import java.util.concurrent.CompletableFuture;
|
|
@@ -1784,8 +1785,14 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
|
- System.out.println(UUID.randomUUID().toString());
|
|
|
|
|
|
+ public static void main(String[] args) throws Exception {
|
|
|
|
+ String test = "1VCTnzsHFK9+jxvV5/YXqtdeAaCKdSBrW2NbvkFlkrYf9sWkFt1oPNr/x31clCJ02ox9+EX8dTeer+EE7K/azgHs+6W7lyi9ZcnklLbuPGdgZ32TgiL34DZKCxGZqMt+U0Mg65bgVxe01CCJZGkO7VBtZAygaNAfMUbFDYhOETU=";
|
|
|
|
+ Base64 base64 = new Base64();
|
|
|
|
+ // 私钥解密过程
|
|
|
|
+ byte[] res = RSAEncrypt.decrypt(RSAEncrypt.loadPrivateKeyByStr(RSAEncrypt.loadPrivateKeyByFile()),
|
|
|
|
+ base64.decode(test));
|
|
|
|
+ String restr = new String(res, "UTF-8");
|
|
|
|
+ System.out.println(restr);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -1807,7 +1814,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
|
|
|
//这里增加判断,如果是日志文件,不做任何处理,直接返回
|
|
//这里增加判断,如果是日志文件,不做任何处理,直接返回
|
|
if(restr.contains("normal")){
|
|
if(restr.contains("normal")){
|
|
- return ResultData.ok("参数带有normal,直接丢弃");
|
|
|
|
|
|
+ return ResultData.ok("参数带有normal,直接丢弃, params=" + params);
|
|
}
|
|
}
|
|
String[] strArr = restr.split(SPLICE);
|
|
String[] strArr = restr.split(SPLICE);
|
|
|
|
|