chengwl 4 years ago
parent
commit
8da6cc63b1
1 changed files with 1 additions and 3 deletions
  1. 1 3
      controllers/IndexController.php

+ 1 - 3
controllers/IndexController.php

@@ -315,9 +315,7 @@ class IndexController extends \app\controllers\HomeController
       $data=[];
       foreach($chunks as $arr){
         $goals=$ga->goals($store,$arr,$start_day,$end_day);
-        echo "<pre>";
-        print_r($goals);exit;
-        $data= empty($data)?$goals:array_merge_recursive($data,$goals);
+        $data= empty($data)?$goals[0]:array_merge_recursive($data,$goals[0]);
       }
       $this->json(1,$data);      
     }