|
@@ -37,6 +37,7 @@ class IndexController extends \app\controllers\HomeController
|
|
|
];
|
|
|
$storeData=$ga->getData($storeConfig);
|
|
|
$storeData=$storeData[0];
|
|
|
+ $res['store']=$storeData;
|
|
|
//广告
|
|
|
$adsConfig=[
|
|
|
'dp'=>$store,
|
|
@@ -56,6 +57,7 @@ class IndexController extends \app\controllers\HomeController
|
|
|
'date'=>['start_at'=>$start_day,'end_at'=>$end_day]
|
|
|
];
|
|
|
$adsData=$ga->getData($adsConfig);
|
|
|
+ $res['ads']=$sellData;
|
|
|
|
|
|
$sells=[
|
|
|
'hour'=>[
|
|
@@ -85,9 +87,9 @@ class IndexController extends \app\controllers\HomeController
|
|
|
$sellData[$k]=$ga->getData($sellConfig);
|
|
|
}
|
|
|
|
|
|
- $res['storeData']=$storeData;
|
|
|
+ $res['sell']=$sellData;
|
|
|
|
|
|
- $storeSellData=$ga->storeSellData($store,$start_day,$end_day,'week');
|
|
|
+ // $storeSellData=$ga->storeSellData($store,$start_day,$end_day,'week');
|
|
|
|
|
|
}catch(\Exception $e){
|
|
|
$this->json(0,[],$e->getMessage());
|