|
@@ -671,7 +671,7 @@ class BTemplateLogic extends BaseLogic |
|
@@ -671,7 +671,7 @@ class BTemplateLogic extends BaseLogic |
|
671
|
{
|
671
|
{
|
|
672
|
//定义数据结构
|
672
|
//定义数据结构
|
|
673
|
$data = $this->model->product_type;
|
673
|
$data = $this->model->product_type;
|
|
674
|
- $productCategory = $this->getCategoryList((new Category()));
|
674
|
+ $productCategory = $this->getCategoryList((new Category()),1);
|
|
675
|
$newCategory = $this->getCategoryList((new NewsCategory()));
|
675
|
$newCategory = $this->getCategoryList((new NewsCategory()));
|
|
676
|
$blogCategory = $this->getCategoryList((new BlogCategory()));
|
676
|
$blogCategory = $this->getCategoryList((new BlogCategory()));
|
|
677
|
if (!empty($productCategory)){
|
677
|
if (!empty($productCategory)){
|
|
@@ -694,7 +694,7 @@ class BTemplateLogic extends BaseLogic |
|
@@ -694,7 +694,7 @@ class BTemplateLogic extends BaseLogic |
|
694
|
* @method :post
|
694
|
* @method :post
|
|
695
|
* @time :2023/12/20 10:26
|
695
|
* @time :2023/12/20 10:26
|
|
696
|
*/
|
696
|
*/
|
|
697
|
- public function getCategoryList($categoryModel){
|
697
|
+ public function getCategoryList($categoryModel,$status = 0){
|
|
698
|
$data = array();
|
698
|
$data = array();
|
|
699
|
$list = $categoryModel->list(['pid'=>0,'status'=>1]);
|
699
|
$list = $categoryModel->list(['pid'=>0,'status'=>1]);
|
|
700
|
foreach ($list as $v){
|
700
|
foreach ($list as $v){
|
|
@@ -707,6 +707,7 @@ class BTemplateLogic extends BaseLogic |
|
@@ -707,6 +707,7 @@ class BTemplateLogic extends BaseLogic |
|
707
|
return $this->success($data);
|
707
|
return $this->success($data);
|
|
708
|
}
|
708
|
}
|
|
709
|
|
709
|
|
|
|
|
710
|
+
|
|
710
|
/**
|
711
|
/**
|
|
711
|
* @remark :保存html
|
712
|
* @remark :保存html
|
|
712
|
* @name :savePublicTemplateHtml
|
713
|
* @name :savePublicTemplateHtml
|