Browse Source

添加分页status

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

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

@@ -57,6 +57,9 @@ class ProductController extends Controller
57 57
      */
58 58
     public function list(Request $request)
59 59
     {
60
-        return Product::paginate(20);
60
+
61
+        $json = Product::paginate(20);
62
+        $json->status = 0;
63
+        return $json;
61 64
     }
62 65
 }

Loading…
Cancel
Save