13283339616 6 年之前
父节点
当前提交
034760f0a2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Api/V1/Controllers/FeaturesController.php

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

@@ -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);