inleft
2022-02-27 2782f3e576b56a9ca078055026394646d57440f8
snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/controller/BlogArticleOutsideController.java
@@ -124,15 +124,11 @@
        BlogArticle article = new BlogArticle();
        BeanUtil.copyProperties(addDto, article);
        article.setSeparateYear(DateUtil.year(article.getPublishDate()));
        article.setSeparateMonth(DateUtil.month(article.getPublishDate()));
        article.setSeparateMonth(DateUtil.month(article.getPublishDate())+1);
        article.setSeparateDay(DateUtil.dayOfMonth(article.getPublishDate()));
        article.setIsEnable(MyConstant.Yes);
        blogArticleService.save(article);
        System.out.println(article.toString());
//        blogArticleService.add(blogArticleParam);
        return new SuccessResponseData();
    }
@@ -203,16 +199,13 @@
        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);
    }
@@ -223,7 +216,7 @@
            return null;
        } else {
            String blogSourcePrefix = ConstantContextHolder.getBlogSourcePrefix();
            return blogSourcePrefix + sysFileInfo.getFileBucket() +"/"+ sysFileInfo.getFileObjectName();
            return blogSourcePrefix + sysFileInfo.getFileBucket() + "/" + sysFileInfo.getFileObjectName();
        }
    }