用户查询
This commit is contained in:
@@ -19,4 +19,9 @@ class User extends Model
|
||||
{
|
||||
return $this->field($fields)->where($where)->fetch();
|
||||
}
|
||||
|
||||
public function getUserListPage($where = '', $fields = '*', $order = 'id desc', $limit = '50')
|
||||
{
|
||||
return $this->field($fields)->where($where)->order($order)->limit($limit)->fetchAll();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user