金山WPS在线编辑

This commit is contained in:
zhangqinbin
2023-10-25 08:47:02 +08:00
parent bb99465b25
commit cf27a37b26

View File

@ -505,9 +505,9 @@ public class WpsServiceImpl implements WpsService {
vo.setFillExtension(fileName.substring(fileName.lastIndexOf("."),fileName.length()));
vo.setVersion(1);
String url = kswdownloadUrl+"?key="+getDownloadEncrypt(in.getFileId(),in.getUserToken());
try {
vo.setDownloadUrl(URLEncoder.encode(url, "utf-8"));
String url = kswdownloadUrl+"?key="+URLEncoder.encode(getDownloadEncrypt(in.getFileId(),in.getUserToken()), "utf-8");
vo.setDownloadUrl(url);
}catch (UnsupportedEncodingException e){
log.error("url转换失败",e);
CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("url获取失败", true);