chengwl 4 年之前
父節點
當前提交
ad1d560e49
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/IndexController.php

+ 1 - 1
controllers/IndexController.php

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