|
@@ -26,13 +26,12 @@ class IndexController extends \app\controllers\HomeController
|
|
|
try{
|
|
|
$storeData=$ga->storeData($store,$start_day,$end_day);
|
|
|
$storeSellData=$ga->storeSellData($store,$start_day,$end_day,'week');
|
|
|
- // foreach($storeSellData as $v){
|
|
|
- // $timestr=$v['year']."W".$v['week'];
|
|
|
- // echo $v['week']."<br/>";
|
|
|
- // $time=date("Y-m-d",\strtotime($timestr));
|
|
|
- // echo $time."<br/>";
|
|
|
+ foreach($storeSellData as $v){
|
|
|
+ $timestr=$v['year']."W".$v['week'];
|
|
|
+ $time=date("Y-m-d",\strtotime($timestr));
|
|
|
+ echo $time."<br/>";
|
|
|
|
|
|
- // }
|
|
|
+ }
|
|
|
echo "<pre>";
|
|
|
print_r($storeSellData);exit;
|
|
|
|