Showing
1 changed file
with
1 additions
and
6 deletions
@@ -418,12 +418,7 @@ const getDiscountTime = (id, yhChannel) => { | @@ -418,12 +418,7 @@ const getDiscountTime = (id, yhChannel) => { | ||
418 | }; | 418 | }; |
419 | 419 | ||
420 | return _discount(param).then((result) => { | 420 | return _discount(param).then((result) => { |
421 | - if (result && result.code === 200) { | ||
422 | - return result.data[0].left_time; | ||
423 | - } else { | ||
424 | - logger.error('get discount time code no 200'); | ||
425 | - return {}; | ||
426 | - } | 421 | + return _.get(result, 'data[0].left_time', {}); |
427 | }); | 422 | }); |
428 | }; | 423 | }; |
429 | 424 |
-
Please register or login to post a comment