|
@@ -230,7 +230,13 @@ class WholeController
|
|
|
*/
|
|
|
public function news(Request $request)
|
|
|
{
|
|
|
- return app('json')->successful(StoreWholesale::where('is_news',1)->where('is_del',0)->where('is_show',1)->select()->toArray());
|
|
|
+ $time_id = input('time_id',0);
|
|
|
+ $where = null;
|
|
|
+ if($time_id>0)
|
|
|
+ {
|
|
|
+ $where['time_id'] = $time_id;
|
|
|
+ }
|
|
|
+ return app('json')->successful(StoreWholesale::where('is_del',0)->where($where)->where('is_show',1)->select()->toArray());
|
|
|
}
|
|
|
|
|
|
/**
|