Commit ab0443be authored by chenchuanwen's avatar chenchuanwen

push

parent 7a15a350
...@@ -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;
......
...@@ -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) {
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment