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 fe4c0af4
authored
Jul 15, 2021
by
Евгений
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
поправил выгрузку ставок
1 parent
a2bc8aac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
1 deletions
app/Console/Commands/BidModifiersAdd.php
app/Jobs/ProcessCallAPI.php
app/Service/Limits.php
app/Service/Requests/Direct/AddBidModifiers.php
app/Console/Commands/BidModifiersAdd.php
View file @
fe4c0af
...
...
@@ -83,6 +83,7 @@ class BidModifiersAdd extends Command
continue
;
}
foreach
(
array_chunk
(
$goalBidModifiers
->
pluck
(
'ids'
)
->
map
(
function
(
$ids
)
{
return
json_decode
(
$ids
);
})
->
collapse
()
->
toArray
(),
1000
)
as
$items
)
{
...
...
app/Jobs/ProcessCallAPI.php
View file @
fe4c0af
...
...
@@ -73,6 +73,7 @@ class ProcessCallAPI implements ShouldQueue
}
catch
(
\Exception
$e
)
{
//TODO: надо отдельно выделить ошибки вызовов, за которые списываются баллы
//https://yandex.ru/dev/direct/doc/dg/concepts/errors.html
Log
::
debug
(
$this
->
api
->
getParams
());
Log
::
debug
(
$e
);
$limits
->
removeRezerv
(
$this
->
limitId
);
throw
$e
;
...
...
app/Service/Limits.php
View file @
fe4c0af
...
...
@@ -5,6 +5,7 @@ use App\Models\Tokens;
use
App\Service\Contract\HeaderLimits
;
use
Illuminate\Support\Facades\Date
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Log
;
class
Limits
implements
\App\Service\Contract\Limits
{
...
...
app/Service/Requests/Direct/AddBidModifiers.php
View file @
fe4c0af
...
...
@@ -151,7 +151,7 @@ class AddBidModifiers extends DirectRequest
},
array_filter
(
@
json_decode
(
$goalBidModifier
->
demographics_adjustments
,
true
))))
{
$data
[
'DemographicsAdjustments'
]
=
$demographics_adjustments
;
$data
[
'DemographicsAdjustments'
]
=
array_values
(
$demographics_adjustments
)
;
}
elseif
(
$retargeting_adjustments
=
array_map
(
function
(
$retargeting_adjustment
)
{
...
...
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