| | |
| | | |
| | | BeanUtil.copyProperties(find, vo); |
| | | |
| | | if (queryDto.getId() % 2 == 0) { |
| | | String tempURL = this.getBlogSourceURL(find.getArticleFileId()); |
| | | |
| | | if (StrUtil.isEmpty(tempURL)) |
| | | throw new BlogException(BlogExceptionEnum.article_file_lose); |
| | | String tempURL = this.getBlogSourceURL(find.getArticleFileId()); |
| | | |
| | | vo.setArticleFileURL(tempURL); |
| | | } else { |
| | | vo.setArticleFileURL("http://t.inleft.com/share/book/blog/es-search.md"); |
| | | } |
| | | if (StrUtil.isEmpty(tempURL)) |
| | | throw new BlogException(BlogExceptionEnum.article_file_lose); |
| | | |
| | | vo.setArticleFileURL(tempURL); |
| | | |
| | | return new SuccessResponseData(vo); |
| | | } |
| | |
| | | return null; |
| | | } else { |
| | | String blogSourcePrefix = ConstantContextHolder.getBlogSourcePrefix(); |
| | | return blogSourcePrefix + sysFileInfo.getFileBucket() +"/"+ sysFileInfo.getFileObjectName(); |
| | | return blogSourcePrefix + sysFileInfo.getFileBucket() + "/" + sysFileInfo.getFileObjectName(); |
| | | } |
| | | } |
| | | |