Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
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
chenchuanwen
my-yaf-project
Commits
ede9c963
Commit
ede9c963
authored
Dec 06, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpush
parent
1e1e649a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ApiConst.php
application/library/Our/ApiConst.php
+1
-1
jpush.php
scripts/crontab/push/jpush.php
+7
-7
No files found.
application/library/Our/ApiConst.php
View file @
ede9c963
...
@@ -24,7 +24,7 @@ class ApiConst
...
@@ -24,7 +24,7 @@ class ApiConst
const
halfHour
=
1800
;
const
halfHour
=
1800
;
//预警时间
//预警时间
const
storageAlarmHour
=
6
0
;
const
storageAlarmHour
=
3
0
;
const
twoMinSecond
=
120
;
const
twoMinSecond
=
120
;
...
...
scripts/crontab/push/jpush.php
View file @
ede9c963
...
@@ -87,13 +87,13 @@ class cliOrderClose extends basecli
...
@@ -87,13 +87,13 @@ class cliOrderClose extends basecli
$push
=
\Our\Push
::
getInstance
();
$push
=
\Our\Push
::
getInstance
();
$pushData
=
array
(
'storeId'
=>
$store
[
'storeId'
],
$pushData
=
array
(
'storeId'
=>
$store
[
'storeId'
],
'type'
=>
\Our\ApiConst
::
messageGoodsAlert
,
'type'
=>
\Our\ApiConst
::
messageGoodsAlert
,
'waitReceiveCount'
=>
ApiConst
::
zero
,
'waitReceiveCount'
=>
\Our\
ApiConst
::
zero
,
'waitDeliveryCount'
=>
0
,
'waitDeliveryCount'
=>
0
,
'waitGetCount'
=>
0
,
'waitGetCount'
=>
0
,
'orderCount'
=>
ApiConst
::
zero
,
'orderCount'
=>
\Our\
ApiConst
::
zero
,
'waitRefundProccessCount'
=>
ApiConst
::
zero
,
'waitRefundProccessCount'
=>
\Our\
ApiConst
::
zero
,
'waitRefundReceiveCount'
=>
ApiConst
::
zero
,
'waitRefundReceiveCount'
=>
\Our\
ApiConst
::
zero
,
'refundCount'
=>
ApiConst
::
zero
,
'refundCount'
=>
\Our\
ApiConst
::
zero
,
'alertCount'
=>
$store
[
'count'
],
'alertCount'
=>
$store
[
'count'
],
'params'
=>
array
(
'c'
=>
'shopkeeper'
,
'params'
=>
array
(
'c'
=>
'shopkeeper'
,
'm'
=>
'orderDetail'
,
'm'
=>
'orderDetail'
,
...
@@ -138,8 +138,8 @@ class cliOrderClose extends basecli
...
@@ -138,8 +138,8 @@ class cliOrderClose extends basecli
if
(
APP_ENV
==
'pre'
||
APP_ENV
==
'product'
){
if
(
APP_ENV
==
'pre'
||
APP_ENV
==
'product'
){
file_put_contents
(
$this
->
lockFileName
,
"running"
);
// CLI 独占锁
file_put_contents
(
$this
->
lockFileName
,
"running"
);
// CLI 独占锁
}
}
$this
->
autoPushMessage
();
//
$this->autoPushMessage();
echo
date
(
'Y-m-d H:i:s'
,
TIMESTAMP
)
.
'消息推送成功'
.
"
\r\n
"
;
//
echo date('Y-m-d H:i:s',TIMESTAMP).'消息推送成功'."\r\n";
$this
->
autoPushClient
();
$this
->
autoPushClient
();
echo
date
(
'Y-m-d H:i:s'
,
TIMESTAMP
)
.
'客户端消息推送成功'
.
"
\r\n
"
;
echo
date
(
'Y-m-d H:i:s'
,
TIMESTAMP
)
.
'客户端消息推送成功'
.
"
\r\n
"
;
...
...
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