|
|
|
@ -155,7 +155,7 @@ class Goods extends GoodsModel |
|
|
|
|
$userId = UserService::getCurrentLoginUserId(); |
|
|
|
|
$model = new GoodsBrowseLog; |
|
|
|
|
$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']) |
|
|
|
|
->where('ctime', '>=', $start_time) |
|
|
|
|
->where('ctime', '<=', $end_time) |
|
|
|
|