Commit bffc63bf authored by wwccw0591's avatar wwccw0591

pc

parent 86ec46f5
...@@ -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);
} }
......
...@@ -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='你有新的定单';
......
<?php <?php
/** /**
* 推送接单消息到店铺
* 推送确认收货消息到用户 * 推送确认收货消息到用户
* 执行时间:每分钟执行一次 * 执行时间:每分钟执行一次
* *
......
...@@ -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'] = unserialize($addData['message']); $addData['message'] = $messageService->convertMessage($addData['message']);
$clientPush->push($addData); $clientPush->push($addData);
} }
} }
......
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