Browse Source

数据统计

shish 5 years ago
parent
commit
874f15d357

+ 1 - 1
app-ghs/controllers/ConsoleController.php

@@ -25,7 +25,6 @@ class ConsoleController extends BaseController
     //概况 ssh 2019.12.19
     public function actionProfile()
     {
-        $asset = ShopService::getById($this->shopId);
         $notice = [
             //['title' => '您的试用期还有7天,点击免费续期1年 ', 'action' => '查看', 'page' => '/admin/recharge/renew'],
         ];
@@ -60,6 +59,7 @@ class ConsoleController extends BaseController
                 'list' => $latestIncome,
             ];
         }
+        $asset = $this->shop;
         util::success([
             'asset' => $asset,
             'notice' => $notice,

+ 2 - 3
app-hd/controllers/ConsoleController.php

@@ -21,8 +21,6 @@ class ConsoleController extends BaseController
     //概况 ssh 2019.12.19
     public function actionProfile()
     {
-        $asset = $this->shop;
-
         //试用期到期时间
         $notice = [];
         $sj = $this->sj;
@@ -78,12 +76,13 @@ class ConsoleController extends BaseController
                 'list' => $latestIncome,
             ];
         }
-
         $visitStat = [
             'month' => 1999,
             'week' => 999,
             'list' => ['7.1' => 100, '7.2' => 200, '7.3' => 300, '7.4' => 400, '7.5' => 500],
         ];
+        $asset = $this->shop;
+
         util::success([
             'asset' => $asset,
             'notice' => $notice,