|
@@ -312,7 +312,7 @@ class IndexController extends \app\controllers\HomeController
|
|
|
$data=[];
|
|
|
foreach($chunks as $arr){
|
|
|
$goals=$ga->goals($store,$arr,$start_day,$end_day);
|
|
|
- $data=empty($goals)?$goals:array_merge_recursive($data,$goals);
|
|
|
+ $data= empty($data)?$goals:array_merge_recursive($data,$goals);
|
|
|
}
|
|
|
$this->json(1,$data);
|
|
|
}
|