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