Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9c6a5d5d
authored
Jun 16, 2021
by
Евгений
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
добавил пейджинг
1 parent
0c3d2a64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
app/Service/Handlers/AdsHandler.php
app/Service/Requests/DirectRequest.php
app/Service/Handlers/AdsHandler.php
View file @
9c6a5d5
...
@@ -32,7 +32,7 @@ class AdsHandler{
...
@@ -32,7 +32,7 @@ class AdsHandler{
}
}
protected
function
limited
(
$response
){
protected
function
limited
(
$response
){
return
false
;
return
$response
[
'result'
][
'LimitedBy'
]
??
0
;
}
}
protected
function
parse
(
$response
){
protected
function
parse
(
$response
){
...
...
app/Service/Requests/DirectRequest.php
View file @
9c6a5d5
...
@@ -31,7 +31,10 @@ class DirectRequest extends APIRequest
...
@@ -31,7 +31,10 @@ class DirectRequest extends APIRequest
function
next
(
$offset
)
function
next
(
$offset
)
{
{
if
(
!
isset
(
$this
->
params
[
'Page'
]))
{
if
(
!
isset
(
$this
->
params
[
'Page'
]))
{
$this
->
params
[
'Page'
]
=
[];
$this
->
params
[
'Page'
]
=
[
'Limit'
=>
self
::
MAX_COUNT
,
'Offset'
=>
$offset
];
}
}
$this
->
params
[
'Page'
][
'Limit'
]
=
self
::
MAX_COUNT
;
$this
->
params
[
'Page'
][
'Limit'
]
=
self
::
MAX_COUNT
;
$this
->
params
[
'Page'
][
'Offset'
]
=
$offset
;
$this
->
params
[
'Page'
][
'Offset'
]
=
$offset
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment