13283339616 6 years ago
parent
commit
034760f0a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Api/V1/Controllers/FeaturesController.php

+ 1 - 1
app/Api/V1/Controllers/FeaturesController.php

271
     }
271
     }
272
     public function theLastRecipes(Request $request){
272
     public function theLastRecipes(Request $request){
273
         $data=Menu::where('status',1)->orderBy('created_at','desc')->limit(50)->get();
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
         $initArr=json_decode(json_encode($initArr),true);
275
         $initArr=json_decode(json_encode($initArr),true);
276
         $readArr=Menu::getReadNum($initArr);
276
         $readArr=Menu::getReadNum($initArr);
277
         $discountArr=Menu::getCollectNum($initArr);
277
         $discountArr=Menu::getCollectNum($initArr);