Ken hace 6 días
padre
commit
945de39e9b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/Services/UserService.php

+ 1 - 0
app/Services/UserService.php

@@ -93,6 +93,7 @@ class UserService extends BaseService
      */
     public static function paginate(array $search = [])
     {
+        $search['limit']  = 3;
         $limit = isset($search['limit']) ? $search['limit'] : 3;
         $paginator = self::model()::where(self::getWhere($search))->with(['wallet' => function($query) {
             // 使用 select 但确保包含外键