edit-liche-stat
This commit is contained in:
@@ -206,8 +206,8 @@ class Statistics extends Wxapp{
|
||||
];
|
||||
$admin_id && $where['admin_id'] = $admin_id;
|
||||
if($day){
|
||||
$s_time = date('Y-m-01 00:00:00',strtotime($day));
|
||||
$e_time = date('Y-m-t 23:59:59',strtotime($day));
|
||||
$s_time = date('Y-m-d 00:00:00',strtotime($day));
|
||||
$e_time = date('Y-m-d 23:59:59',strtotime($day));
|
||||
$where['c_time>='] = strtotime($s_time);
|
||||
$where['c_time<='] = strtotime($e_time);
|
||||
}
|
||||
@@ -344,8 +344,8 @@ class Statistics extends Wxapp{
|
||||
'biz_id' => $biz_id
|
||||
];
|
||||
if($day){
|
||||
$s_time = date('Y-m-01 00:00:00',strtotime($day));
|
||||
$e_time = date('Y-m-t 23:59:59',strtotime($day));
|
||||
$s_time = date('Y-m-d 00:00:00',strtotime($day));
|
||||
$e_time = date('Y-m-d 23:59:59',strtotime($day));
|
||||
$where['c_time>='] = strtotime($s_time);
|
||||
$where['c_time<='] = strtotime($e_time);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user