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

+ 2 - 1
controllers/IndexController.php

@@ -78,9 +78,10 @@ class IndexController extends Controller
             'productCheckouts'=>"ga:productCheckouts",
             'productCheckouts'=>"ga:productCheckouts",
           ];
           ];
           $i=1;
           $i=1;
-          $datas=array_chunk($metrics,10);
+          $datas=array_chunk($metrics,10,true);
           foreach($datas as $data){
           foreach($datas as $data){
                 $response = $this->getReport($analytics,$data);
                 $response = $this->getReport($analytics,$data);
+
                 $this->printResults($response);
                 $this->printResults($response);
                 $list=[];
                 $list=[];
           }
           }