Commit 6652c077 authored by liuyuzhen's avatar liuyuzhen

线下支付返回内容

parent 245b169d
......@@ -977,7 +977,20 @@ class OrderServiceModel extends \Business\AbstractModel
$store = \Our\RedisHelper::cachedFunction(\Redis\Db6\StoreRedisModel::getInstance(), array(&$storeDao, 'getInfoById'), array($order['store_id']), \Our\ApiConst::oneHour);
$orderContent['storeName'] = $store['store_name'];
if ($order['payment_type'] == \Our\ApiConst::payOffline) {
$orderContent['payway'] = $store['offline_payway'];
$orderContent['imageUrls'] = array();
if(\Our\Common::isSerialized($store['offline_payway'])){
$paywayArray = unserialize($store['offline_payway']);
$orderContent['payway'] = $paywayArray['payway'];
if($paywayArray){
foreach($paywayArray['images'] as $image){
if($image){
$orderContent['imageUrls'][] = \Our\Common::getStaticFile($image, \Our\ImageConst::storeLabel);
}
}
}
}else{
$orderContent['payway'] = $store['offline_payway'];
}
} else if ($order['payment_type'] == \Our\ApiConst::payAog) {
$orderContent['payway'] = \Our\DescribeConst::afterPay;
}
......
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