chengwl 4 năm trước cách đây
mục cha
commit
a2a919f8ef
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      controllers/IndexController.php

+ 2 - 1
controllers/IndexController.php

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