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
6d1fb6dc
Commit
6d1fb6dc
authored
Jan 10, 2019
by
chenchuanwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
139c6d4f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
44 deletions
+50
-44
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+2
-2
Push.php
application/library/Our/Push.php
+48
-42
No files found.
application/library/Order/OrderConfirmUtil.php
View file @
6d1fb6dc
...
...
@@ -752,8 +752,8 @@ class OrderConfirmUtil {
public
function
pushMessage
(){
if
(
$this
->
pushMessageOrders
){
foreach
(
$this
->
pushMessageOrders
as
$tempOrder
){
\Business\Order\OrderServiceModel
::
getInstance
(
DbNameConst
::
masterDBConnectName
)
->
pushRecieveOrder
(
$tempOrder
);
//
\Our\Common::redisPublish('\Business\Order\OrderServiceModel','pushRecieveOrder',array($tempOrder));
//
\Business\Order\OrderServiceModel::getInstance(DbNameConst::masterDBConnectName)->pushRecieveOrder($tempOrder);
\Our\Common
::
redisPublish
(
'\Business\Order\OrderServiceModel'
,
'pushRecieveOrder'
,
array
(
$tempOrder
));
}
}
}
...
...
application/library/Our/Push.php
View file @
6d1fb6dc
...
...
@@ -314,6 +314,7 @@ class Push
{
$push
=
\Yaf\Registry
::
get
(
'config'
)
->
get
(
'push'
);
$conf
=
\Yaf\Registry
::
get
(
'config'
)
->
get
(
'redis.database.params'
);
try
{
if
(
$push
[
'open'
])
{
if
(
!
empty
(
$this
->
data
)){
$redis
=
new
\Redis
();
...
...
@@ -353,6 +354,7 @@ class Push
unset
(
$this
->
data
);
return
true
;
}
$redis
->
close
();
unset
(
$this
->
data
);
unset
(
$redis
);
}
...
...
@@ -360,6 +362,10 @@ class Push
$this
->
errorCode
=
CodeConfigModel
::
pushIsNotOpen
;
return
false
;
}
}
catch
(
\Exception
$ex
){
echo
$ex
->
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