|
@@ -569,7 +569,7 @@ class CustomController extends BaseController
|
|
|
} else if ($type == 3) {
|
|
} else if ($type == 3) {
|
|
|
$where['level'] = 0;
|
|
$where['level'] = 0;
|
|
|
} else if ($type == 4) {
|
|
} else if ($type == 4) {
|
|
|
- //最近消费时间
|
|
|
|
|
|
|
+ //最近7天未下单
|
|
|
$recentDay = isset($get['recentDay']) && is_numeric($get['recentDay']) ? (int)$get['recentDay'] : 7;
|
|
$recentDay = isset($get['recentDay']) && is_numeric($get['recentDay']) ? (int)$get['recentDay'] : 7;
|
|
|
$totalSecond = bcmul(86400, $recentDay);
|
|
$totalSecond = bcmul(86400, $recentDay);
|
|
|
$currentSecond = bcsub(time(), $totalSecond);
|
|
$currentSecond = bcsub(time(), $totalSecond);
|