snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/controller/BlogArticleOutsideController.java
@@ -217,8 +217,8 @@ String tempURL = this.getBlogSourceURL(find.getArticleFileId()); if (StrUtil.isEmpty(tempURL)) throw new BlogException(BlogExceptionEnum.article_file_lose); //if (StrUtil.isEmpty(tempURL)) //throw new BlogException(BlogExceptionEnum.article_file_lose); vo.setArticleFileURL(tempURL); vo.setCoverFileURL(this.getBlogSourceURL(vo.getCoverFileId())); snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticleVo.java
@@ -25,6 +25,7 @@ package vip.xiaonuo.modular.blogarticle.entity; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import java.util.Date; @@ -79,6 +80,7 @@ /** * 封面文件地址(id) */ @JsonIgnore private Long coverFileId; /** snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/mapper/mapping/BlogArticleMapper.xml
@@ -33,6 +33,7 @@ <trim prefix="WHERE" prefixOverrides="AND | OR"> a.is_enable=1 and a.editor_status=1 and a.publish_date < now() <choose> <when test="param.fileType != null"> and a.article_file_type = #{param.fileType} snowy-main/src/main/java/vip/xiaonuo/modular/blogarticlecomment/controller/BlogArticleCommentOutsideController.java
@@ -86,7 +86,7 @@ //自我认证 if (MyConstant.myIds.contains(addDto.getVisitorNickName())) { if (StrUtil.isEmpty(addDto.getAuthCode()) || !addDto.getAuthCode().equals(ConstantContextHolder.getPushCode())) { throw new BlogException("不要成为我,你就是真的自己"); throw new BlogException("此名称在这里使用需要正确的授权码.."); } } snowy-main/src/main/java/vip/xiaonuo/modular/blogfriendshiplink/controller/BlogLinkOutsideController.java
@@ -32,6 +32,7 @@ import vip.xiaonuo.core.consts.CommonConstant; import vip.xiaonuo.core.consts.MyConstant; import vip.xiaonuo.core.enums.LogAnnotionOpTypeEnum; import vip.xiaonuo.core.exception.BlogException; import vip.xiaonuo.core.pojo.response.ResponseData; import vip.xiaonuo.core.pojo.response.SuccessResponseData; import vip.xiaonuo.modular.blogfriendshiplink.entity.BlogFriendshipLink; @@ -121,6 +122,13 @@ @PostMapping("/blogLink/add") @BusinessLog(title = "外部blog系统_blog友情链接_增加", opType = LogAnnotionOpTypeEnum.ADD) public ResponseData add(@RequestBody @Validated(BlogFriendshipLinkParam.add.class) BlogFriendshipLinkParam blogFriendshipLinkParam) { if (blogFriendshipLinkService.lambdaQuery() .eq(BlogFriendshipLink::getUrl, blogFriendshipLinkParam.getUrl()) .count() > 0) { throw new BlogException("已经有该链接的记录啦,不要重复提交哦.."); } blogFriendshipLinkParam.setIsEnable(MyConstant.Yes); blogFriendshipLinkService.add(blogFriendshipLinkParam); return new SuccessResponseData();