|
@@ -483,7 +483,14 @@ class Cron
|
|
|
}
|
|
|
#归店统计
|
|
|
public function shop_stat_api(){
|
|
|
- $month = Dever::input('month', date('Y-m'));
|
|
|
+ $month = Dever::input('month');
|
|
|
+ $y = date('Y');
|
|
|
+ $m = date('m')-1;
|
|
|
+ if($month){
|
|
|
+ $month = $month;
|
|
|
+ }else{
|
|
|
+ $month = $y.'-'.'0'.$m;
|
|
|
+ }
|
|
|
$start_time = $month .'-01 00:00:00';
|
|
|
$end_time = date('Y-m-d', strtotime($start_time. ' +1 month -1 day')).' 23:59:59';
|
|
|
$start = Dever::maketime($start_time);
|