公告结构化
This commit is contained in:
@ -192,6 +192,7 @@ public class WpsController {
|
|||||||
in.setFileName(fileName);
|
in.setFileName(fileName);
|
||||||
in.setUserToken(userToken);
|
in.setUserToken(userToken);
|
||||||
in.setType(type);
|
in.setType(type);
|
||||||
|
in.setFileExtension(fileExtension);
|
||||||
String str = this.wpsService.getKSWpsUrl(in);
|
String str = this.wpsService.getKSWpsUrl(in);
|
||||||
try {
|
try {
|
||||||
response.setContentType("text/html;charset=utf-8");
|
response.setContentType("text/html;charset=utf-8");
|
||||||
@ -256,9 +257,10 @@ public class WpsController {
|
|||||||
@GetMapping("/kingSoft/file2")
|
@GetMapping("/kingSoft/file2")
|
||||||
public boolean getKSFile2(HttpServletRequest request,HttpServletResponse response, @RequestParam("key") String key) {
|
public boolean getKSFile2(HttpServletRequest request,HttpServletResponse response, @RequestParam("key") String key) {
|
||||||
//带后缀
|
//带后缀
|
||||||
String fileNameE = this.wpsService.downloadDecrypt(key);
|
String fileIdName = this.wpsService.downloadDecrypt(key);
|
||||||
|
|
||||||
String[] fileId = fileNameE.split(".");
|
String[] fileId = fileIdName.split(".");
|
||||||
|
log.info(" file2 fileId"+fileId);
|
||||||
|
|
||||||
List<String> businessIdList = new ArrayList<>();
|
List<String> businessIdList = new ArrayList<>();
|
||||||
|
|
||||||
@ -266,7 +268,7 @@ public class WpsController {
|
|||||||
|
|
||||||
Optional<AttachmentDetail> optional = attachmentClient.findByBusinessId(businessIdList);
|
Optional<AttachmentDetail> optional = attachmentClient.findByBusinessId(businessIdList);
|
||||||
|
|
||||||
String fileName = fileNameE;
|
String fileName = fileIdName;
|
||||||
String text = " ";
|
String text = " ";
|
||||||
byte buf[] = text.getBytes();
|
byte buf[] = text.getBytes();
|
||||||
String fileLength = String.valueOf(buf.length);
|
String fileLength = String.valueOf(buf.length);
|
||||||
|
@ -301,7 +301,7 @@ public class WpsServiceImpl implements WpsService {
|
|||||||
in.setFileId(fileId);
|
in.setFileId(fileId);
|
||||||
in.setFileName(fileName+"."+extension);
|
in.setFileName(fileName+"."+extension);
|
||||||
in.setType(type);
|
in.setType(type);
|
||||||
|
in.setFileExtension(extension);
|
||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -761,7 +761,7 @@ public class WpsServiceImpl implements WpsService {
|
|||||||
//String jm = RSA.encrypt("1538803364727304192_20231219095538_0_doc_客户端测试子项目1-XY926020101-服务费通知书-杭州安恒信息技术股份有限公司",wpsService.kswpublicKey);
|
//String jm = RSA.encrypt("1538803364727304192_20231219095538_0_doc_客户端测试子项目1-XY926020101-服务费通知书-杭州安恒信息技术股份有限公司",wpsService.kswpublicKey);
|
||||||
|
|
||||||
//System.out.println(jm);
|
//System.out.println(jm);
|
||||||
String jm = "OYVWJe3COaiuwhNM4Op7K6ijEWEzY0PQUlceNRTX2xL/Ey7opbVA0pFkX/Ky89LjlsnA3kGJgg5l6gtCIsZGK3g/X3zp4amtDu78CmaBbZEmYSHBG4q98DSPVJUMmk0hKPAmhIP+Kclpc0j8V/d2Gg4DpVqDMTZ8HeYh37ai3A==";
|
String jm = "LPORqX1zzrE+7DP9gv8vHQ39uTN8+3O5uUhFq42ZsJM4ZGoJL1kwJLhO3vp8ExxXFdjsQj58/KHMzqVEtizmfOexJ8inQUQHaj1j/7tW1TNex+Z+N2Z19LfPgekOBHFJWUwYhwUwvBBD61qD3mdy8qnEoYNTTvkEJ1MoBrVNOHs=";
|
||||||
String jem = RSA.decrypt(jm,wpsService.kswprivateKey);
|
String jem = RSA.decrypt(jm,wpsService.kswprivateKey);
|
||||||
System.out.println(jem);
|
System.out.println(jem);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user