Showing
1 changed file
with
1 additions
and
6 deletions
@@ -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) { |
-
Please register or login to post a comment