cloudroam
2025-06-06 6633d9e8e60146a25b1266aacc0ae6d4a8f2fe88
fix:parent
已修改1个文件
3 ■■■■■ 文件已修改
src/main/java/com/mzl/flower/service/film/impl/CommentServiceImpl.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/mzl/flower/service/film/impl/CommentServiceImpl.java
@@ -171,6 +171,9 @@
        //todo 评论内风险校验,评论内容可以是图片资源,考虑增加一个contextType字段用来区分资源类型
        CommentPo commentPo = new CommentPo();
        BeanUtils.copyProperties(commentDTO, commentPo);
        if(StringUtils.isEmpty(commentDTO.getParentId())|| commentDTO.getParentId()<=0){
            commentPo.setParentId(0);
        }
        commentPo.setState(true);
        commentPo.create(SecurityUtils.getUserId());
        if (commentPoMapper.insert(commentPo) <= 0) {