|
@@ -271,7 +271,7 @@ class FeaturesController extends BaseController
|
271
|
271
|
}
|
272
|
272
|
public function theLastRecipes(Request $request){
|
273
|
273
|
$data=Menu::where('status',1)->orderBy('created_at','desc')->limit(50)->get();
|
274
|
|
- $initArr=Menu::where('status',1)->orderBy('created_at','desc')->limit(50)->pluck('menu_id');
|
|
274
|
+ $initArr=Menu::where('status',1)->orderBy('created_at','desc')->limit(50)->pluck('id');
|
275
|
275
|
$initArr=json_decode(json_encode($initArr),true);
|
276
|
276
|
$readArr=Menu::getReadNum($initArr);
|
277
|
277
|
$discountArr=Menu::getCollectNum($initArr);
|