作者 lyh

gx

@@ -4,6 +4,7 @@ namespace App\Http\Logic\Bside\HomeCount; @@ -4,6 +4,7 @@ namespace App\Http\Logic\Bside\HomeCount;
4 4
5 5
6 use App\Http\Logic\Bside\BaseLogic; 6 use App\Http\Logic\Bside\BaseLogic;
  7 +use App\Models\RouteMap\RouteMap;
7 use App\Models\Visit\Visit; 8 use App\Models\Visit\Visit;
8 use App\Models\Visit\VisitItem; 9 use App\Models\Visit\VisitItem;
9 use App\Models\HomeCount\Count; 10 use App\Models\HomeCount\Count;
@@ -116,7 +117,7 @@ class CountLogic extends BaseLogic @@ -116,7 +117,7 @@ class CountLogic extends BaseLogic
116 public function with_data_count(){ 117 public function with_data_count(){
117 $product_count = (new Product())->where(['project_id' => $this->user['project_id']])->count(); 118 $product_count = (new Product())->where(['project_id' => $this->user['project_id']])->count();
118 $news_count = (new News())->where(['project_id' => $this->user['project_id']])->count(); 119 $news_count = (new News())->where(['project_id' => $this->user['project_id']])->count();
119 - $page_count = (new BTemplate())->where(['project_id' => $this->user['project_id']])->count(); 120 + $page_count = (new RouteMap())->where(['project_id' => $this->user['project_id']])->count();
120 $data = [ 121 $data = [
121 'product_count' => $product_count, 122 'product_count' => $product_count,
122 'news_count' => $news_count, 123 'news_count' => $news_count,