Authored by Rock Zhang

修复没有物流信息的订单也不显示banner图的bug

Code Review By Rock Zhang
... ... @@ -112,6 +112,12 @@ class OrderModel
break;
}
// 获取物流详情页banner
$banner = self::getLogisterBanner();
if ($banner) {
$result['banner'] = $banner;
}
$logistics = OrderData::LogisticsData($orderCode, $uid);
if (empty($logistics['data'])) {
break;
... ... @@ -129,12 +135,6 @@ class OrderModel
$result['logisticDetail'][] = $build;
}
// 获取物流详情页banner
$banner = self::getLogisterBanner();
if ($banner) {
$result['banner'] = $banner;
}
} while (false);
return $result;
... ...