This commit is contained in:
gxwebsoft
2024-03-22 12:58:04 +08:00
parent 91dc10417b
commit 86e0916149
@@ -7,7 +7,6 @@ import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.gxwebsoft.cms.entity.*; import com.gxwebsoft.cms.entity.*;
import com.gxwebsoft.cms.param.ArticleCategoryParam;
import com.gxwebsoft.cms.param.NavigationParam; import com.gxwebsoft.cms.param.NavigationParam;
import com.gxwebsoft.cms.param.WebsiteParam; import com.gxwebsoft.cms.param.WebsiteParam;
import com.gxwebsoft.cms.service.*; import com.gxwebsoft.cms.service.*;
@@ -64,9 +63,9 @@ public class WebsiteController extends BaseController {
final String siteInfo = redisUtil.get(key); final String siteInfo = redisUtil.get(key);
// 从缓存读取信息 // 从缓存读取信息
// if(StrUtil.isNotBlank(siteInfo)){ if(StrUtil.isNotBlank(siteInfo)){
// return success(JSONObject.parseObject(siteInfo,Website.class)); return success(JSONObject.parseObject(siteInfo,Website.class));
// } }
// 获取站点信息 // 获取站点信息
final WebsiteParam websiteParam = new WebsiteParam(); final WebsiteParam websiteParam = new WebsiteParam();
@@ -202,11 +201,11 @@ public class WebsiteController extends BaseController {
website.setLayout(design.getLayout()); website.setLayout(design.getLayout());
} }
// 提取文章分类作为网站导航 // 提取文章分类作为网站导航(废弃)
final ArticleCategoryParam param = new ArticleCategoryParam(); // final ArticleCategoryParam param = new ArticleCategoryParam();
param.setDeleted(0); // param.setDeleted(0);
param.setStatus(0); // param.setStatus(0);
website.setCategoryList(articleCategoryService.listRel(param)); // website.setCategoryList(articleCategoryService.listRel(param));
// 读取友情链接 // 读取友情链接
final LinkParam linkParam = new LinkParam(); final LinkParam linkParam = new LinkParam();
linkParam.setLinkType("友情链接"); linkParam.setLinkType("友情链接");