소스 검색

支持上架下架状态

chenxiqiang 6 년 전
부모
커밋
e3362d3087
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      manage-server/app/Http/Controllers/ProductController.php

+ 1
- 1
manage-server/app/Http/Controllers/ProductController.php 파일 보기

@@ -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…
취소
저장