diff --git a/app/api/model/Goods.php b/app/api/model/Goods.php index e5065b68..b7df66f1 100644 --- a/app/api/model/Goods.php +++ b/app/api/model/Goods.php @@ -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)