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
ab0443be
Commit
ab0443be
authored
Dec 26, 2018
by
chenchuanwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
7a15a350
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
ApiConst.php
application/library/Our/ApiConst.php
+2
-0
OrderService.php
application/models/Business/Order/OrderService.php
+1
-1
jpush.php
scripts/crontab/push/jpush.php
+5
-1
No files found.
application/library/Our/ApiConst.php
View file @
ab0443be
...
@@ -96,6 +96,8 @@ class ApiConst
...
@@ -96,6 +96,8 @@ class ApiConst
const
memberMessageType
=
5
;
const
memberMessageType
=
5
;
const
diliveryMessageOrder
=
9
;
const
diliveryMessageOrder
=
9
;
const
messageReceiveOrderType
=
301
;
//配送员用户消息类型
//配送员用户消息类型
//快递消息
//快递消息
const
deliveryUserMessageType
=
8
;
const
deliveryUserMessageType
=
8
;
...
...
application/models/Business/Order/OrderService.php
View file @
ab0443be
...
@@ -333,7 +333,7 @@ class OrderServiceModel extends \Business\AbstractModel
...
@@ -333,7 +333,7 @@ class OrderServiceModel extends \Business\AbstractModel
$storeDao
=
\DAO\StoreModel
::
getInstance
();
$storeDao
=
\DAO\StoreModel
::
getInstance
();
//判断订单目前状态是否允许取消
//判断订单目前状态是否允许取消
$isAllowCancel
=
$orderDao
->
isAllowCancel
(
$order
);
$isAllowCancel
=
$orderDao
->
isAllowCancel
(
$order
);
$isAllowCance
=
true
;
//
$isAllowCance = true;
if
(
$isAllowCancel
)
{
if
(
$isAllowCancel
)
{
$res
=
$orderDao
->
updateStatusByOrderId
(
$orderId
,
ApiConst
::
orderStateCancel
,
false
,
ApiConst
::
cancelOrderBySelf
);
$res
=
$orderDao
->
updateStatusByOrderId
(
$orderId
,
ApiConst
::
orderStateCancel
,
false
,
ApiConst
::
cancelOrderBySelf
);
if
(
$res
)
{
if
(
$res
)
{
...
...
scripts/crontab/push/jpush.php
View file @
ab0443be
...
@@ -60,7 +60,7 @@ class cliOrderClose extends basecli
...
@@ -60,7 +60,7 @@ class cliOrderClose extends basecli
// else{
// else{
// if(!empty($res['timeDiff'])){
// if(!empty($res['timeDiff'])){
// $timeArr=explode('-',$res['timeDiff']);
// $timeArr=explode('-',$res['timeDiff']);
// if(!empty($timeArr)){
v
// if(!empty($timeArr)){
// if(\Our\Common::isCurentTimeInSection($timeArr[0],$timeArr[1])){
// if(\Our\Common::isCurentTimeInSection($timeArr[0],$timeArr[1])){
// continue;
// continue;
// }
// }
...
@@ -75,6 +75,10 @@ class cliOrderClose extends basecli
...
@@ -75,6 +75,10 @@ class cliOrderClose extends basecli
protected
function
autoPushClient
(){
protected
function
autoPushClient
(){
$push
=
\Our\Push
::
getInstance
();
$push
=
\Our\Push
::
getInstance
();
while
(
$pushData
=
\Our\RedisHelper
::
lpop
(
'client_push'
)){
while
(
$pushData
=
\Our\RedisHelper
::
lpop
(
'client_push'
)){
if
(
$pushData
[
'type'
]
==
\Our\ApiConst
::
messageReceiveOrderType
){
$push
->
recievedOrder
(
$pushData
[
'storeId'
],
$pushData
[
'orderId'
]);
continue
;
}
$push
->
addOneToClient
(
$pushData
);
$push
->
addOneToClient
(
$pushData
);
}
}
$goodsCommonService
=
\Business\Goods\GoodsCommonServiceModel
::
getInstance
();
$goodsCommonService
=
\Business\Goods\GoodsCommonServiceModel
::
getInstance
();
...
...
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