Commit d1ed13ed authored by liuyuzhen's avatar liuyuzhen

线下支付图片不存在问题

parent 45696ab5
......@@ -686,10 +686,14 @@ class CartServiceModel extends \Business\AbstractModel{
if($deliverySetting['offlinePay']){
$offlinePaywayArray = unserialize($store['offline_payway']);
if($offlinePaywayArray){
foreach($offlinePaywayArray['images'] as $image){
if($image){
$offlinePaywayArray['imageUrls'][] = \Our\Common::getStaticFile($image, \Our\ImageConst::storeLabel);
if($offlinePaywayArray['images']){
foreach($offlinePaywayArray['images'] as $image){
if($image){
$offlinePaywayArray['imageUrls'][] = \Our\Common::getStaticFile($image, \Our\ImageConst::storeLabel);
}
}
}else{
$offlinePaywayArray['imageUrls'] = array();
}
$deliverySetting['offlinePayway'] = $offlinePaywayArray;
}
......
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