| | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.util.PageUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.crypto.SecureUtil; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | @PostMapping("/blogArticle/add") |
| | | @BusinessLog(title = "外部blog系统_blog文章_增加", opType = LogAnnotionOpTypeEnum.ADD) |
| | | public ResponseData add(@RequestBody @Validated(BlogArticleAddDto.add.class) BlogArticleAddDto addDto) { |
| | | if (!SecureUtil.md5(addDto.getSecret()).equals(ConstantContextHolder.getPushCode())) { |
| | | if (!addDto.getSecret().equals(ConstantContextHolder.getPushCode())) { |
| | | throw new BlogException("口令错误.."); |
| | | } |
| | | |