作者 lyh

gx

@@ -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
@@ -38,7 +38,8 @@ class CountLogic extends BaseLogic @@ -38,7 +38,8 @@ class CountLogic extends BaseLogic
38 ]; 38 ];
39 $info = $this->model->read($param,['pv_num','ip_num','inquiry_num','date','compliance_day','service_day','country']); 39 $info = $this->model->read($param,['pv_num','ip_num','inquiry_num','date','compliance_day','service_day','country']);
40 if($info === false){ 40 if($info === false){
41 - $info = []; 41 + $info = $this->model->read(['project_id' => $this->user['project_id']],
  42 + ['pv_num','ip_num','inquiry_num','date','compliance_day','service_day','country']);
42 } 43 }
43 return $this->success($info); 44 return $this->success($info);
44 } 45 }