修复没有物流信息的订单也不显示banner图的bug
Code Review By Rock Zhang
Showing
1 changed file
with
6 additions
and
6 deletions
@@ -112,6 +112,12 @@ class OrderModel | @@ -112,6 +112,12 @@ class OrderModel | ||
112 | break; | 112 | break; |
113 | } | 113 | } |
114 | 114 | ||
115 | + // 获取物流详情页banner | ||
116 | + $banner = self::getLogisterBanner(); | ||
117 | + if ($banner) { | ||
118 | + $result['banner'] = $banner; | ||
119 | + } | ||
120 | + | ||
115 | $logistics = OrderData::LogisticsData($orderCode, $uid); | 121 | $logistics = OrderData::LogisticsData($orderCode, $uid); |
116 | if (empty($logistics['data'])) { | 122 | if (empty($logistics['data'])) { |
117 | break; | 123 | break; |
@@ -129,12 +135,6 @@ class OrderModel | @@ -129,12 +135,6 @@ class OrderModel | ||
129 | $result['logisticDetail'][] = $build; | 135 | $result['logisticDetail'][] = $build; |
130 | } | 136 | } |
131 | 137 | ||
132 | - // 获取物流详情页banner | ||
133 | - $banner = self::getLogisterBanner(); | ||
134 | - if ($banner) { | ||
135 | - $result['banner'] = $banner; | ||
136 | - } | ||
137 | - | ||
138 | } while (false); | 138 | } while (false); |
139 | 139 | ||
140 | return $result; | 140 | return $result; |
-
Please register or login to post a comment