| | |
| | | import com.yeshi.fanli.util.taobao.TaoBaoUtil;
|
| | | import com.yeshi.fanli.util.taobao.TaoKeApiUtil;
|
| | |
|
| | |
|
| | | @Service
|
| | | public class HomeRecommendGoodsServiceImpl implements HomeRecommendGoodsService {
|
| | |
|
| | |
| | | if (fList != null && fList.size() > 0)
|
| | | return fList;
|
| | |
|
| | | DaTaoKeGoodsResult result = DaTaoKeApiUtil.getRankingList(type, null);
|
| | | DaTaoKeGoodsResult result = null;
|
| | | int count = 0;
|
| | | while (result == null && count < 4) {
|
| | | count++;
|
| | | try {
|
| | | result = DaTaoKeApiUtil.getRankingList(type, null);
|
| | | } catch (Exception e) {
|
| | | }
|
| | | }
|
| | |
|
| | | List<DaTaoKeDetailV2> list = result.getGoodsList();
|
| | | List<TaoBaoGoodsBrief> goodsList = new ArrayList<>();
|
| | | if (list != null)
|