Authored by 李靖

修改显示物流判断

@@ -201,15 +201,10 @@ module.exports = class extends global.yoho.BaseModel { @@ -201,15 +201,10 @@ module.exports = class extends global.yoho.BaseModel {
201 }); 201 });
202 } 202 }
203 203
204 - if (orderDetail.links) {  
205 - _.forEach(orderDetail.links, (val) => {  
206 - if (val === 'getExpress') { 204 + if (_.get(orderDetail, 'orderDetailInfo.ext.needHref') === 'Y') {
207 orderDetail = _.assign(orderDetail, { 205 orderDetail = _.assign(orderDetail, {
208 expressUrl: helpers.urlFormat('/home/logistic', {order_code: orderCode}) 206 expressUrl: helpers.urlFormat('/home/logistic', {order_code: orderCode})
209 }); 207 });
210 - return;  
211 - }  
212 - });  
213 } 208 }
214 209
215 _.forEach(orderDetail.orderGoods, function(data) { 210 _.forEach(orderDetail.orderGoods, function(data) {