Explorar el Código

添加分页status

chenxiqiang hace 7 años
padre
commit
5bcf8f1edf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      manage-server/app/Http/Controllers/ProductController.php

+ 1
- 1
manage-server/app/Http/Controllers/ProductController.php Ver fichero

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

Loading…
Cancelar
Guardar