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 c343e63f
authored
Jun 30, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19498 Снхронизация объявлений с целевыми
1 parent
7fc5b0f8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
app/Jobs/ProcessCallAPI.php
app/Service/Requests/Direct/UpdateAds.php
database/migrations/2021_06_30_103807_change_advertisements_column_nullable.php
app/Jobs/ProcessCallAPI.php
View file @
c343e63
...
@@ -21,6 +21,7 @@ class ProcessCallAPI implements ShouldQueue
...
@@ -21,6 +21,7 @@ class ProcessCallAPI implements ShouldQueue
private
$api
;
private
$api
;
private
$limitId
;
private
$limitId
;
public
$tries
=
1
;
public
$timeout
=
1500
;
public
$timeout
=
1500
;
/**
/**
...
...
app/Service/Requests/Direct/UpdateAds.php
View file @
c343e63
...
@@ -115,11 +115,11 @@ class UpdateAds extends DirectRequest
...
@@ -115,11 +115,11 @@ class UpdateAds extends DirectRequest
}
}
if
(
$goalAdvertisement
->
href
)
{
if
(
$goalAdvertisement
->
href
)
{
$data
[
'TextAd'
][
'Href'
]
=
$goalAdvertisement
->
href
;
$data
[
'TextAd'
][
'Href'
]
=
StrReplaceByVariables
::
getInstance
(
$goalAdvertisement
->
href
,
$list
)
->
get
()
;
}
}
if
(
$goalAdvertisement
->
display_url_path
)
{
if
(
$goalAdvertisement
->
display_url_path
)
{
$data
[
'TextAd'
][
'DisplayUrlPath'
]
=
$goalAdvertisement
->
display_url_path
;
$data
[
'TextAd'
][
'DisplayUrlPath'
]
=
StrReplaceByVariables
::
getInstance
(
$goalAdvertisement
->
display_url_path
,
$list
)
->
get
()
;
}
}
if
(
$goalAdvertisement
->
v_card_id
)
{
if
(
$goalAdvertisement
->
v_card_id
)
{
...
...
database/migrations/2021_06_30_103807_change_advertisements_column_nullable.php
0 → 100644
View file @
c343e63
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
ChangeAdvertisementsColumnNullable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'advertisements'
,
function
(
Blueprint
$table
)
{
$table
->
bigInteger
(
'campaign_id'
)
->
unsigned
()
->
nullable
();
$table
->
bigInteger
(
'ad_group_id'
)
->
unsigned
()
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
//
}
}
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