|
|
@ -155,7 +155,7 @@ class Goods extends GoodsModel |
|
|
|
$userId = UserService::getCurrentLoginUserId(); |
|
|
|
$userId = UserService::getCurrentLoginUserId(); |
|
|
|
$model = new GoodsBrowseLog; |
|
|
|
$model = new GoodsBrowseLog; |
|
|
|
$end_time = date('Y-m-d'); |
|
|
|
$end_time = date('Y-m-d'); |
|
|
|
$start_time = date('Y-m-d', strtotime($end_time . ' - 2 days')); |
|
|
|
$start_time = date('Y-m-d', strtotime($end_time . ' - 15 days')); |
|
|
|
$list = $model->with(['sku', 'goods', 'images.file']) |
|
|
|
$list = $model->with(['sku', 'goods', 'images.file']) |
|
|
|
->where('ctime', '>=', $start_time) |
|
|
|
->where('ctime', '>=', $start_time) |
|
|
|
->where('ctime', '<=', $end_time) |
|
|
|
->where('ctime', '<=', $end_time) |
|
|
|