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 4d85f377
authored
Jun 03, 2021
by
Евгений
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Поправил ошибки
1 parent
4f5590b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
app/Jobs/ProcessCallAPI.php
app/Jobs/ProcessCallAPI.php
View file @
4d85f37
...
...
@@ -12,6 +12,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use
Illuminate\Foundation\Bus\Dispatchable
;
use
Illuminate\Queue\InteractsWithQueue
;
use
Illuminate\Queue\SerializesModels
;
use
Illuminate\Support\Facades\Log
;
class
ProcessCallAPI
implements
ShouldQueue
{
...
...
@@ -57,7 +58,13 @@ class ProcessCallAPI implements ShouldQueue
}
}
$response
=
$api
->
execute
();
$limits
->
acceptRezerv
(
$this
->
limitId
,
new
HeaderLimits
(
$response
->
headers
()));
try
{
$limits
->
acceptRezerv
(
$this
->
limitId
,
new
HeaderLimits
(
$response
->
headers
()));
}
catch
(
\Exception
$e
){
Log
::
debug
(
$e
);
Log
::
debug
(
$response
->
headers
());
}
//TODO: обработать результат.
// если не хватило баллов на все что хотели запросить, то в очередь отправляем новый запрос на получение новых данных
AdsHandler
::
getInstance
(
$this
->
api
)
->
handle
(
$response
);
...
...
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