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
bffc63bf
Commit
bffc63bf
authored
Sep 28, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
86ec46f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Message.php
application/controllers/Message.php
+2
-2
DescribeConst.php
application/library/Our/DescribeConst.php
+2
-2
pushWaitComfirm.php
scripts/crontab/order/pushWaitComfirm.php
+0
-1
jpush.php
scripts/crontab/push/jpush.php
+2
-1
No files found.
application/controllers/Message.php
View file @
bffc63bf
...
@@ -97,7 +97,7 @@ class MessageController extends \Our\Controller_AbstractApi {
...
@@ -97,7 +97,7 @@ class MessageController extends \Our\Controller_AbstractApi {
if
(
$button
[
'type'
]
==
\Our\ApiConst
::
messageButtonTypeConfirmButton
){
if
(
$button
[
'type'
]
==
\Our\ApiConst
::
messageButtonTypeConfirmButton
){
$orderService
=
\Business\Order\OrderServiceModel
::
getInstance
();
$orderService
=
\Business\Order\OrderServiceModel
::
getInstance
();
$this
->
message
=
\Our\DescribeConst
::
confirmOrderSuccess
;
$this
->
message
=
\Our\DescribeConst
::
confirmOrderSuccess
;
return
$orderService
->
confirmRecieve
(
$
this
->
memberId
,
$button
[
'params'
][
'orderId'
]
);
return
$orderService
->
confirmRecieve
(
$
button
[
'params'
][
'orderId'
],
$this
->
memberId
);
}
}
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
commonError
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
commonError
);
}
}
...
@@ -117,7 +117,7 @@ class MessageController extends \Our\Controller_AbstractApi {
...
@@ -117,7 +117,7 @@ class MessageController extends \Our\Controller_AbstractApi {
}
}
$res
=
$this
->
getServiceUpdate
(
$res
);
$res
=
$this
->
getServiceUpdate
(
$res
);
if
(
$res
!==
false
){
if
(
$res
!==
false
){
$this
->
success
(
'接单成功'
,
$this
->
message
);
$this
->
success
(
$this
->
message
,
$this
->
message
);
}
else
{
}
else
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
receiveError
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
receiveError
);
}
}
...
...
application/library/Our/DescribeConst.php
View file @
bffc63bf
...
@@ -148,8 +148,8 @@ class DescribeConst
...
@@ -148,8 +148,8 @@ class DescribeConst
const
refundRetund
=
'退货'
;
const
refundRetund
=
'退货'
;
//用户订单送达消息
//用户订单送达消息
const
reacheRemindTitle
=
'你的订单
已经送达
'
;
const
reacheRemindTitle
=
'你的订单
卖家已经发货
'
;
const
reacheRemindContent
=
'你有新的订单号为{0}的订单已经
送达
'
;
const
reacheRemindContent
=
'你有新的订单号为{0}的订单已经
发货
'
;
//店铺有新订单
//店铺有新订单
const
recieveWaitTitle
=
'你有新的定单'
;
const
recieveWaitTitle
=
'你有新的定单'
;
...
...
scripts/crontab/order/pushWaitComfirm.php
View file @
bffc63bf
<?php
<?php
/**
/**
* 推送接单消息到店铺
* 推送确认收货消息到用户
* 推送确认收货消息到用户
* 执行时间:每分钟执行一次
* 执行时间:每分钟执行一次
*
*
...
...
scripts/crontab/push/jpush.php
View file @
bffc63bf
...
@@ -45,9 +45,10 @@ class cliOrderClose extends basecli
...
@@ -45,9 +45,10 @@ class cliOrderClose extends basecli
$redis
=
new
\Redis
();
$redis
=
new
\Redis
();
$redis
->
pconnect
(
$conf
[
'host'
],
$conf
[
'port'
]);
$redis
->
pconnect
(
$conf
[
'host'
],
$conf
[
'port'
]);
$clientPush
=
\JPush\ClientPush
::
getInstance
();
$clientPush
=
\JPush\ClientPush
::
getInstance
();
$messageService
=
\DAO\MessageHistoryModel
::
getInstance
();
while
(
$pushData
=
$redis
->
lPop
(
'push_center'
)){
while
(
$pushData
=
$redis
->
lPop
(
'push_center'
)){
$addData
=
unserialize
(
$pushData
);
$addData
=
unserialize
(
$pushData
);
$addData
[
'message'
]
=
unserializ
e
(
$addData
[
'message'
]);
$addData
[
'message'
]
=
$messageService
->
convertMessag
e
(
$addData
[
'message'
]);
$clientPush
->
push
(
$addData
);
$clientPush
->
push
(
$addData
);
}
}
}
}
...
...
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