Commit ab0443be authored by chenchuanwen's avatar chenchuanwen

push

parent 7a15a350
......@@ -96,6 +96,8 @@ class ApiConst
const memberMessageType = 5;
const diliveryMessageOrder=9;
const messageReceiveOrderType=301;
//配送员用户消息类型
//快递消息
const deliveryUserMessageType = 8;
......
......@@ -333,7 +333,7 @@ class OrderServiceModel extends \Business\AbstractModel
$storeDao=\DAO\StoreModel::getInstance();
//判断订单目前状态是否允许取消
$isAllowCancel = $orderDao->isAllowCancel($order);
$isAllowCance = true;
//$isAllowCance = true;
if ($isAllowCancel) {
$res = $orderDao->updateStatusByOrderId($orderId, ApiConst::orderStateCancel,false,ApiConst::cancelOrderBySelf);
if ($res) {
......
......@@ -60,7 +60,7 @@ class cliOrderClose extends basecli
// else{
// if(!empty($res['timeDiff'])){
// $timeArr=explode('-',$res['timeDiff']);
// if(!empty($timeArr)){v
// if(!empty($timeArr)){
// if(\Our\Common::isCurentTimeInSection($timeArr[0],$timeArr[1])){
// continue;
// }
......@@ -75,6 +75,10 @@ class cliOrderClose extends basecli
protected function autoPushClient(){
$push=\Our\Push::getInstance();
while($pushData=\Our\RedisHelper::lpop('client_push')){
if($pushData['type']==\Our\ApiConst::messageReceiveOrderType){
$push->recievedOrder($pushData['storeId'],$pushData['orderId']);
continue;
}
$push->addOneToClient($pushData);
}
$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