Commit 46c8a8c3 by 阮思源

Merge branch 'rsy-fix' into 'master'

修改

See merge request rays/pcloud-book!355
parents 05b428a2 4d87d67e
...@@ -638,7 +638,14 @@ public class BookKeywordBizImpl implements BookKeywordBiz { ...@@ -638,7 +638,14 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
ResourceDTO resourceDTO = map.get(notKeywordItem.getResourceId()); ResourceDTO resourceDTO = map.get(notKeywordItem.getResourceId());
if (resourceDTO != null) { if (resourceDTO != null) {
sendFileVO.setFileUrl(resourceDTO.getFileUrl()); sendFileVO.setFileUrl(resourceDTO.getFileUrl());
sendFileVO.setFileName(resourceDTO.getResourceName()); String fileName = resourceDTO.getResourceName();
String fileType = resourceDTO.getFileType();
log.info("fileName="+fileName+"+fileType+"+fileType);
if (fileName.contains(fileType)){//去掉后缀
fileName = fileName.substring(0, fileName.indexOf(fileType)-1);
}
log.info("fileName="+fileName);
sendFileVO.setFileName(fileName);
} }
sendFileVO.setIp(ip); sendFileVO.setIp(ip);
sendFileVO.setAltId(robotId); sendFileVO.setAltId(robotId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment