|
@@ -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);
|
|
|
}
|