金山WPS在线编辑
This commit is contained in:
@ -505,9 +505,9 @@ public class WpsServiceImpl implements WpsService {
|
|||||||
vo.setFillExtension(fileName.substring(fileName.lastIndexOf("."),fileName.length()));
|
vo.setFillExtension(fileName.substring(fileName.lastIndexOf("."),fileName.length()));
|
||||||
vo.setVersion(1);
|
vo.setVersion(1);
|
||||||
|
|
||||||
String url = kswdownloadUrl+"?key="+getDownloadEncrypt(in.getFileId(),in.getUserToken());
|
|
||||||
try {
|
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){
|
}catch (UnsupportedEncodingException e){
|
||||||
log.error("url转换失败",e);
|
log.error("url转换失败",e);
|
||||||
CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("url获取失败", true);
|
CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("url获取失败", true);
|
||||||
|
Reference in New Issue
Block a user