Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
e5389982
Commit
e5389982
authored
Feb 29, 2016
by
Шакарим Сапа
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- DEBUGGING
parent
2c4ba7c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
common/components/UnisenderAPI.php
common/components/UnisenderAPI.php
+1
-0
common/modules/triggers/components/conditions/conditions/CheckClickingOnTheLink.php
...mponents/conditions/conditions/CheckClickingOnTheLink.php
+0
-3
No files found.
common/components/UnisenderAPI.php
View file @
e5389982
...
...
@@ -182,6 +182,7 @@ class UnisenderAPI {
public
function
linkIsVisited
(
$email
,
$link
)
{
if
(
array_key_exists
(
'result'
,
$this
->
visitedLinks
)
&&
array_key_exists
(
'data'
,
$this
->
visitedLinks
[
'result'
]))
{
foreach
(
$this
->
visitedLinks
[
'result'
][
'data'
]
as
$transition
)
{
var_dump
(
strpos
(
$link
,
$transition
[
1
]));
if
(
$transition
[
0
]
==
$email
&&
strpos
(
$link
,
$transition
[
1
])
!==
false
)
return
true
;
}
...
...
common/modules/triggers/components/conditions/conditions/CheckClickingOnTheLink.php
View file @
e5389982
...
...
@@ -42,9 +42,6 @@ class CheckClickingOnTheLink extends ConditionBase implements ConditionInterface
// Делаем запрос на получение ссылок по которым переходили
$sender
->
getVisitedLinks
(
$message
->
campaign_id
);
// Возвращаем переход по конкретной ссылке
var_dump
(
$sender
->
getVisitedLinks
(
$message
->
campaign_id
));
echo
'<br>'
;
echo
$param
->
value
.
((
$sender
->
linkIsVisited
(
$message
->
email
,
$param
->
value
))
?
'1'
:
'0'
)
.
'<br><br>'
;
return
$sender
->
linkIsVisited
(
$message
->
email
,
$param
->
value
);
}
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment