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
e67b6541
Commit
e67b6541
authored
Dec 26, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into linqing
parents
d81edc2f
7000ef49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
OrderService.php
application/models/Business/Order/OrderService.php
+3
-0
jpush.php
scripts/crontab/push/jpush.php
+2
-0
No files found.
application/models/Business/Order/OrderService.php
View file @
e67b6541
...
...
@@ -405,6 +405,7 @@ class OrderServiceModel extends \Business\AbstractModel
$type
=
ApiConst
::
messageWaitGet
;
}
else
{
$type
=
ApiConst
::
messageWaitSend
;
}
$push
=
\Our\Push
::
getInstance
();
$pushData
=
array
(
'storeId'
=>
$order
[
'store_id'
],
...
...
@@ -521,6 +522,7 @@ class OrderServiceModel extends \Business\AbstractModel
{
$baseConfDir
=
\Our\Common
::
getConfig
(
'out.config'
);
$savePath
=
$baseConfDir
.
\Our\PathConst
::
orderWaitRecieveTaskAddTime
;
$messageService
=
\Business\Message\MessageServiceModel
::
getInstance
();
$addTime
=
file_get_contents
(
$savePath
);
$addTime
=
$addTime
?
$addTime
:
ApiConst
::
zero
;
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
);
...
...
@@ -535,6 +537,7 @@ class OrderServiceModel extends \Business\AbstractModel
$pageBegin
++
;
}
while
(
!
empty
(
$orders
[
'list'
]));
$push
->
sendTcpMessage
();
$messageService
->
addMessageCenterToDb
();
file_put_contents
(
$savePath
,
TIMESTAMP
);
}
...
...
scripts/crontab/push/jpush.php
View file @
e67b6541
...
...
@@ -74,9 +74,11 @@ class cliOrderClose extends basecli
}
protected
function
autoPushClient
(){
$push
=
\Our\Push
::
getInstance
();
$messageService
=
\Business\Message\MessageServiceModel
::
getInstance
();
while
(
$pushData
=
\Our\RedisHelper
::
lpop
(
'client_push'
)){
if
(
$pushData
[
'type'
]
==
\Our\ApiConst
::
messageReceiveOrderType
){
$push
->
recievedOrder
(
$pushData
[
'storeId'
],
$pushData
[
'orderId'
]);
$messageService
->
addMessageCenterToDb
();
continue
;
}
$push
->
addOneToClient
(
$pushData
);
...
...
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