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
bdae6efc
Commit
bdae6efc
authored
Mar 29, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Устранены лишние логические элементы
parent
db5f9ae6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
common/modules/triggers/components/conditions/conditions/CheckEmailAndTemplateToNotReading.php
...nditions/conditions/CheckEmailAndTemplateToNotReading.php
+0
-7
common/modules/triggers/components/conditions/conditions/CheckEmailAndTemplateToReading.php
.../conditions/conditions/CheckEmailAndTemplateToReading.php
+0
-7
No files found.
common/modules/triggers/components/conditions/conditions/CheckEmailAndTemplateToNotReading.php
View file @
bdae6efc
...
@@ -31,13 +31,6 @@ class CheckEmailAndTemplateToNotReading extends ConditionBase implements Conditi
...
@@ -31,13 +31,6 @@ class CheckEmailAndTemplateToNotReading extends ConditionBase implements Conditi
* @return bool
* @return bool
*/
*/
public
function
check
(
$message
=
null
,
$params
=
array
()){
public
function
check
(
$message
=
null
,
$params
=
array
()){
if
(
!
is_null
(
$message
))
{
// Создаем объект унисендера
$sender
=
new
UnisenderAPI
();
// Делаем запрос на получение статуса сообщения
$sender
->
getMessageStatuses
(
$message
->
campaign_id
,
$message
->
message_id
,
$message
->
email
);
return
(
$sender
->
isReaded
());
}
if
(
!
is_null
(
$this
->
model
)
&&
!
is_null
(
$message
))
{
if
(
!
is_null
(
$this
->
model
)
&&
!
is_null
(
$message
))
{
// Получаем параметр link
// Получаем параметр link
$param_template
=
TriggerParam
::
find
()
->
where
([
'condition_id'
=>
$this
->
model
->
id
,
'key'
=>
'template_id'
])
->
one
();
$param_template
=
TriggerParam
::
find
()
->
where
([
'condition_id'
=>
$this
->
model
->
id
,
'key'
=>
'template_id'
])
->
one
();
...
...
common/modules/triggers/components/conditions/conditions/CheckEmailAndTemplateToReading.php
View file @
bdae6efc
...
@@ -31,13 +31,6 @@ class CheckEmailAndTemplateToReading extends ConditionBase implements ConditionI
...
@@ -31,13 +31,6 @@ class CheckEmailAndTemplateToReading extends ConditionBase implements ConditionI
* @return bool
* @return bool
*/
*/
public
function
check
(
$message
=
null
,
$params
=
array
()){
public
function
check
(
$message
=
null
,
$params
=
array
()){
if
(
!
is_null
(
$message
))
{
// Создаем объект унисендера
$sender
=
new
UnisenderAPI
();
// Делаем запрос на получение статуса сообщения
$sender
->
getMessageStatuses
(
$message
->
campaign_id
,
$message
->
message_id
,
$message
->
email
);
return
(
$sender
->
isReaded
());
}
if
(
!
is_null
(
$this
->
model
)
&&
!
is_null
(
$message
))
{
if
(
!
is_null
(
$this
->
model
)
&&
!
is_null
(
$message
))
{
// Получаем параметр link
// Получаем параметр link
$param_template
=
TriggerParam
::
find
()
->
where
([
'condition_id'
=>
$this
->
model
->
id
,
'key'
=>
'template_id'
])
->
one
();
$param_template
=
TriggerParam
::
find
()
->
where
([
'condition_id'
=>
$this
->
model
->
id
,
'key'
=>
'template_id'
])
->
one
();
...
...
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