Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
b785959e
Commit
b785959e
authored
Aug 12, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jielong' of
https://gitlab.yidian-inc.com/bp/goods
into jielong
parents
aeee0567
a488b907
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Pindan.php
daemon/Pindan.php
+7
-1
No files found.
daemon/Pindan.php
View file @
b785959e
...
...
@@ -31,6 +31,11 @@ class Pindan implements DaemonServiceInterface
$list
=
MarketingService
::
marketingList
(
$params
);
if
(
empty
(
$list
[
'result'
]))
{
DaemonLog
::
info
(
'DaemonServiceInterface_pindan'
,
'no need to send at'
.
date
(
'Y-m-d H:i:s'
)
);
sleep
(
60
);
return
false
;
}
...
...
@@ -47,11 +52,12 @@ class Pindan implements DaemonServiceInterface
$list
[
'result'
][
0
][
'pindan_desc'
]
?:
self
::
DEFAULT_DESC
];
//发送消息
Msg
::
send
(
999
,
$app_id
,
$template_id
,
$page_url
,
$type
,
$params
);
DaemonLog
::
info
(
'DaemonServiceInterface_pindan'
,
'send at '
.
date
(
'Y-m-d H:i:s'
)
.
' params:'
.
json_encode
(
$params
)
);
Msg
::
send
(
999
,
$app_id
,
$template_id
,
$page_url
,
$type
,
$params
);
sleep
(
60
);
//保证16:40只执行一次
}
catch
(
Exception
$e
)
{
DaemonLog
::
error
(
...
...
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