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
d5f7551b
Commit
d5f7551b
authored
Dec 01, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户订单被接单推送
parent
b9318068
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
DescribeConst.php
application/library/Our/DescribeConst.php
+3
-0
Push.php
application/library/Our/Push.php
+3
-3
No files found.
application/library/Our/DescribeConst.php
View file @
d5f7551b
...
...
@@ -164,6 +164,9 @@ class DescribeConst
//店铺有新订单
const
recieveWaitTitle
=
'您有新的订单'
;
const
recieveWaitContent
=
'您有新的订单号为{0}的订单,是否需要接单'
;
//用户订单被接单
const
recieveOrderTitle
=
'您的订单有更新'
;
const
recieveOrderContent
=
'您有新的订单号为{0}的订单,已被接单'
;
//消息按钮成功提示信息
const
recieveOrderSuccess
=
'接单成功'
;
...
...
application/library/Our/Push.php
View file @
d5f7551b
...
...
@@ -243,14 +243,14 @@ class Push
//$store = $storeDao->getInfo(array('store_id'=>$storeId));
$orderService
=
\Business\Order\OrderServiceModel
::
getInstance
();
$orderDetail
=
$orderService
->
getOrderDetail
(
$orderId
);
$toUserId
=
$
storeId
;
$toUserId
=
$
orderDetail
[
'buyerId'
]
;
$messageContent
=
$this
->
getOrderMessageContent
(
$orderDetail
);
$fromAvatar
=
Common
::
getStaticFile
(
ImageConst
::
orderAvatarName
,
ImageConst
::
systemAvatar
);
$href
=
Common
::
format
(
PathConst
::
orderId
,
$orderId
);
$buttons
=
$this
->
getComfirmRecieveButtons
(
$orderId
);
$message
=
$this
->
getMessageTemplate
(
ApiConst
::
reicieveOrderType
,
DescribeConst
::
recieve
Wait
Title
,
$messageContent
,
''
,
''
,
$href
,
ApiConst
::
zero
,
$buttons
);
$message
=
$this
->
getMessageTemplate
(
ApiConst
::
reicieveOrderType
,
DescribeConst
::
recieve
Order
Title
,
$messageContent
,
''
,
''
,
$href
,
ApiConst
::
zero
,
$buttons
);
$id
=
time
()
.
(
string
)
$this
->
orderIdStr
.
$orderId
;
$this
->
pushMessage
(
$id
,
$this
->
orderId
,
$orderDetail
[
'buyerId'
],
$this
->
orderId
,
$toUserId
,
$this
->
orderName
,
$store
[
'store_name'
],
ApiConst
::
orderMessageType
,
ApiConst
::
store
MessageType
,
$fromAvatar
,
$message
);
$this
->
pushMessage
(
$id
,
$this
->
orderId
,
$orderDetail
[
'buyerId'
],
$this
->
orderId
,
$toUserId
,
$this
->
orderName
,
$store
[
'store_name'
],
ApiConst
::
orderMessageType
,
ApiConst
::
member
MessageType
,
$fromAvatar
,
$message
);
}
//店铺接单
public
function
recieveWait
(
$storeId
,
$orderId
,
$orderSn
)
...
...
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