|
@@ -402,10 +402,10 @@ class AlbumBossController extends Controller
|
|
$activeCustomers = array();
|
|
$activeCustomers = array();
|
|
$newCustomers = array();
|
|
$newCustomers = array();
|
|
for ($d = 0; $d < 15; $d++) {
|
|
for ($d = 0; $d < 15; $d++) {
|
|
- $Start = mktime(0, 0, 0, date('m'), date('d'), date('y')) + 86400 * $d;
|
|
|
|
- $End = $Start + 86400;
|
|
|
|
- $End = date('Y-m-d H:i:s', $End);
|
|
|
|
- $Start = date('Y-m-d H:i:s', $Start);
|
|
|
|
|
|
+ $StartO = mktime(0, 0, 0, date('m'), date('d'), date('y')) + 86400 * $d;
|
|
|
|
+ $EndO = $StartO + 86400;
|
|
|
|
+ $End = date('Y-m-d H:i:s', $EndO);
|
|
|
|
+ $Start = date('Y-m-d H:i:s', $StartO);
|
|
$customerNum = AlbumWatchRecord::where([
|
|
$customerNum = AlbumWatchRecord::where([
|
|
['store_id', $store_id],
|
|
['store_id', $store_id],
|
|
['updated_at','>=',$Start],
|
|
['updated_at','>=',$Start],
|
|
@@ -418,11 +418,11 @@ class AlbumBossController extends Controller
|
|
['updated_at','<=',$End]
|
|
['updated_at','<=',$End]
|
|
])->orderByDesc('id')->count();
|
|
])->orderByDesc('id')->count();
|
|
$activeCustomers[] = [
|
|
$activeCustomers[] = [
|
|
- 'day' => date('m', $Start) . '-' . date('d', $End),
|
|
|
|
|
|
+ 'day' => date('m', $StartO) . '-' . date('d', $EndO),
|
|
'num' => $customerNum
|
|
'num' => $customerNum
|
|
- ];dd(11);
|
|
|
|
|
|
+ ];
|
|
$newCustomers[] = [
|
|
$newCustomers[] = [
|
|
- 'day' => date('m', $Start) . '-' . date('d', $End),
|
|
|
|
|
|
+ 'day' => date('m', $StartO) . '-' . date('d', $EndO),
|
|
'num' => $newCustomer
|
|
'num' => $newCustomer
|
|
];
|
|
];
|
|
}
|
|
}
|