Commit 9e77c608 authored by 刘小敏's avatar 刘小敏

首页每日上新添加上架限制

parent 1245963e
...@@ -213,6 +213,7 @@ class Index extends Common ...@@ -213,6 +213,7 @@ class Index extends Common
$goods = \app\admin\model\shopro\goods\Goods::where('status', 'up') $goods = \app\admin\model\shopro\goods\Goods::where('status', 'up')
->field('id,title,image,original_price,price') ->field('id,title,image,original_price,price')
->whereTime('createtime', 'between', ["{$month}-01", "{$month}-31"]) ->whereTime('createtime', 'between', ["{$month}-01", "{$month}-31"])
->where('status', 'up')
->order('createtime', 'desc') ->order('createtime', 'desc')
->limit($limit) ->limit($limit)
->select(); ->select();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment