Parcourir la source

添加分页status

chenxiqiang il y a 6 ans
Parent
révision
a3cbe0d5b1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      manage-server/app/Http/Controllers/ProductController.php

+ 1
- 1
manage-server/app/Http/Controllers/ProductController.php Voir le fichier

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

Loading…
Annuler
Enregistrer