Commit 1794a4e7 authored by wwccw0591's avatar wwccw0591

pc

parent b53b2ace
...@@ -148,6 +148,7 @@ class MessageController extends \Our\Controller_AbstractApi { ...@@ -148,6 +148,7 @@ class MessageController extends \Our\Controller_AbstractApi {
} }
\Error\ErrorModel::throwException(\Error\CodeConfigModel::setMessageFail); \Error\ErrorModel::throwException(\Error\CodeConfigModel::setMessageFail);
} }
public function getSetAction(){ public function getSetAction(){
$memberCenterService=\Business\User\MemberCenterServiceModel::getInstance(); $memberCenterService=\Business\User\MemberCenterServiceModel::getInstance();
$messageSet=$memberCenterService->getMessageSet($this->memberId); $messageSet=$memberCenterService->getMessageSet($this->memberId);
......
...@@ -37,6 +37,14 @@ class ArrayConst ...@@ -37,6 +37,14 @@ class ArrayConst
ApiConst::qqPayType, ApiConst::qqPayType,
ApiConst::wxLitePayType ApiConst::wxLitePayType
); );
const paymentTypes=array(
ApiConst::offlinePay=>'线下付款',
ApiConst::wxpay=>'微信付款',
ApiConst::afterSendPay=>'货到付款',
ApiConst::alipay=>'支付宝付款',
ApiConst::tenpay=>'qq支付',
ApiConst::wxProgram=>'微信付款',
);
const orderPayTypeOnlines=array( const orderPayTypeOnlines=array(
ApiConst::wxpay, ApiConst::wxpay,
ApiConst::alipay, ApiConst::alipay,
......
...@@ -143,7 +143,8 @@ class DescribeConst ...@@ -143,7 +143,8 @@ class DescribeConst
const payOnlineName = '线上支付'; //线上支付 const payOnlineName = '线上支付'; //线上支付
const payOfflineName = '线下支付'; //线下支付 const payOfflineName = '线下支付'; //线下支付
const payAogName = '货到付款'; //货到付款 const payAogName = '货到付款'; //货到付款
const payed = '已付款'; //货到付款
const notPayed = '未付款'; //货到付款
const refund='退款'; const refund='退款';
const refundRetund='退货'; const refundRetund='退货';
......
...@@ -190,6 +190,20 @@ class Push ...@@ -190,6 +190,20 @@ class Push
array_push($buttons,$button); array_push($buttons,$button);
return $buttons; return $buttons;
}
public function getOrderMessageContent($orderDetail){
$messageContent='商品名称:';
foreach($orderDetail['orderGoods'] as $orderGood){
$messageContent.=$orderGood['goodsName'].'×'.$orderGood['goodsNum']."\n";
}
$messageContent.='支付方式:'.ArrayConst::paymentTypes[$orderDetail['paymentType']]."\n";
$messageContent.='付款状态:'.ArrayConst::paymentTypes[$orderDetail['paymentTime']]>ApiConst::zero?DescribeConst::payed:DescribeConst::notPayed."\n";
$messageContent.='收货地址:'.$orderDetail['reciverInfo']['address']."\n";
$messageContent.='收货人:'.$orderDetail['reciverInfo']['trueName']."\n";
$messageContent.='收货人电话:'.$orderDetail['reciverInfo']['telPhone']."\n";
return $messageContent;
} }
//店铺接单 //店铺接单
public function recieveWait($storeId,$orderId,$orderSn) public function recieveWait($storeId,$orderId,$orderSn)
...@@ -199,9 +213,9 @@ class Push ...@@ -199,9 +213,9 @@ class Push
$store = \Our\RedisHelper::cachedFunction(\Redis\Db6\StoreRedisModel::getInstance(), array(&$storeDao, 'getInfo'), array($condition), ApiConst::oneDaySecond, array($storeId)); $store = \Our\RedisHelper::cachedFunction(\Redis\Db6\StoreRedisModel::getInstance(), array(&$storeDao, 'getInfo'), array($condition), ApiConst::oneDaySecond, array($storeId));
//$store = $storeDao->getInfo(array('store_id'=>$storeId)); //$store = $storeDao->getInfo(array('store_id'=>$storeId));
$orderService=\Business\Order\OrderServiceModel::getInstance(); $orderService=\Business\Order\OrderServiceModel::getInstance();
$order=$orderService->getOrderDetail($orderId); $orderDetail=$orderService->getOrderDetail($orderId);
$toUserId=$storeId; $toUserId=$storeId;
$messageContent=Common::format(DescribeConst::recieveWaitContent,$orderSn); $messageContent=$this->getOrderMessageContent($orderDetail);
$fromAvatar=Common::getStaticFile(ImageConst::orderAvatarName, ImageConst::systemAvatar); $fromAvatar=Common::getStaticFile(ImageConst::orderAvatarName, ImageConst::systemAvatar);
$href=Common::format(PathConst::orderId,$orderId); $href=Common::format(PathConst::orderId,$orderId);
$buttons=$this->getComfirmRecieveButtons($orderId); $buttons=$this->getComfirmRecieveButtons($orderId);
......
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