Browse Source

支持上架下架状态

chenxiqiang 6 years ago
parent
commit
e3362d3087
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      manage-server/app/Http/Controllers/ProductController.php

+ 1
- 1
manage-server/app/Http/Controllers/ProductController.php View File

@@ -70,7 +70,7 @@ class ProductController extends Controller
70 70
      */
71 71
     public function list(Request $request)
72 72
     {
73
-        $products = Product::all()->toArray();
73
+        $products = Product::where("status", 0)->get()->toArray();
74 74
         $datas = array_map(function ($product) {
75 75
             return [
76 76
                 "id" => $product["id"],

Loading…
Cancel
Save