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
b458aed6
Commit
b458aed6
authored
Aug 09, 2021
by
suntengda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 拼单活动通知
parent
920f4d7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Pindan.php
daemon/Pindan.php
+2
-2
No files found.
daemon/Pindan.php
View file @
b458aed6
...
@@ -15,7 +15,7 @@ class Pindan implements DaemonServiceInterface
...
@@ -15,7 +15,7 @@ class Pindan implements DaemonServiceInterface
public
function
run
()
public
function
run
()
{
{
//只在16:40执行逻辑
//只在16:40执行逻辑
if
(
date
(
'H'
)
!=
1
7
||
date
(
'i'
)
!=
3
0
)
{
if
(
date
(
'H'
)
!=
1
6
||
date
(
'i'
)
!=
4
0
)
{
sleep
(
5
);
sleep
(
5
);
return
false
;
return
false
;
}
}
...
@@ -53,7 +53,7 @@ class Pindan implements DaemonServiceInterface
...
@@ -53,7 +53,7 @@ class Pindan implements DaemonServiceInterface
);
);
sleep
(
60
);
//保证16:40只执行一次
sleep
(
60
);
//保证16:40只执行一次
}
catch
(
Exception
$e
)
{
}
catch
(
Exception
$e
)
{
DaemonLog
::
info
(
DaemonLog
::
error
(
'DaemonServiceInterface_pindan'
,
'DaemonServiceInterface_pindan'
,
'params:'
.
json_encode
(
$params
)
.
' exception:'
.
$e
->
getMessage
()
'params:'
.
json_encode
(
$params
)
.
' exception:'
.
$e
->
getMessage
()
);
);
...
...
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