Browse Source

添加分页status

chenxiqiang 6 years ago
parent
commit
a3cbe0d5b1
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

58
     public function list(Request $request)
58
     public function list(Request $request)
59
     {
59
     {
60
 
60
 
61
-        $json = Product::paginate(20)->json();
61
+        $json = Product::paginate(20)->toJson();
62
         $json["status"] = 0;
62
         $json["status"] = 0;
63
         return $json;
63
         return $json;
64
     }
64
     }

Loading…
Cancel
Save