chengwl 4 years ago
parent
commit
cb0c87a373
2 changed files with 2 additions and 2 deletions
  1. 1 1
      controllers/IndexController.php
  2. 1 1
      lib/GA.php

+ 1 - 1
controllers/IndexController.php

@@ -74,7 +74,7 @@ class IndexController extends Controller
     }
     public function addSource($data,$store){
       $i=1;
-      $limit=200;
+      $limit=500;
       $modelKey=[
         'date',
         'store',

+ 1 - 1
lib/GA.php

@@ -157,7 +157,7 @@ class GA{
         ];
         $VIEW_ID = $this->getViewId($dp);//
         $dateRange = new \Google_Service_AnalyticsReporting_DateRange();
-        $start_at=date('Y-m-d',time()-24*3600*7);
+        $start_at=date('Y-m-d',time()-24*3600);
         $end_at=date('Y-m-d',time()-24*3600);
         $dateRange->setStartDate($start_at);
         $dateRange->setEndDate($end_at);