Showing
1 changed file
with
5 additions
and
4 deletions
@@ -940,16 +940,17 @@ const getNewArrival = (channel, isJKChannel, poolId)=> { | @@ -940,16 +940,17 @@ const getNewArrival = (channel, isJKChannel, poolId)=> { | ||
940 | params = {}, | 940 | params = {}, |
941 | method = ''; | 941 | method = ''; |
942 | 942 | ||
943 | - // 没有商品池id,不查数据 | ||
944 | - if (!poolId) { | ||
945 | - return Promise.all(rel).then(); | ||
946 | - } | 943 | + |
947 | 944 | ||
948 | if (isJKChannel) { | 945 | if (isJKChannel) { |
949 | method = 'app.search.sales'; | 946 | method = 'app.search.sales'; |
950 | params = { | 947 | params = { |
951 | productPool: poolId | 948 | productPool: poolId |
952 | }; | 949 | }; |
950 | + // 没有商品池id,不查数据 | ||
951 | + if (!poolId) { | ||
952 | + return Promise.all(rel).then(); | ||
953 | + } | ||
953 | } else { | 954 | } else { |
954 | method = 'web.search.newshelve'; | 955 | method = 'web.search.newshelve'; |
955 | params = { | 956 | params = { |
-
Please register or login to post a comment