inleft
2022-02-22 e99de81fc41ebb7e012ce425b4e3bab2fb521d1d
修正细节
2 files modified
19 ■■■■■ changed files
snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/controller/BlogArticleOutsideController.java 15 ●●●●● patch | view | raw | blame | history
snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml 4 ●●●● patch | view | raw | blame | history
snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/controller/BlogArticleOutsideController.java
@@ -203,16 +203,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 +220,7 @@
            return null;
        } else {
            String blogSourcePrefix = ConstantContextHolder.getBlogSourcePrefix();
            return blogSourcePrefix + sysFileInfo.getFileBucket() +"/"+ sysFileInfo.getFileObjectName();
            return blogSourcePrefix + sysFileInfo.getFileBucket() + "/" + sysFileInfo.getFileObjectName();
        }
    }
snowy-main/src/main/java/vip/xiaonuo/modular/blogarticletype/mapper/mapping/BlogArticleTypeMapper.xml
@@ -8,7 +8,7 @@
            t1.type_name AS typeName,
            t2.count
        FROM
            blog_article_type t1,
            blog_article_type t1 left join
            (
                SELECT
                    t.id,
@@ -24,7 +24,7 @@
                GROUP BY
                    t.id
            ) t2
        WHERE
        on
            t1.id = t2.id
        ORDER BY
            t1.top_value ASC,