| | |
| | | detailImgsSize.clear();
|
| | | for (ImageInfo imgInfo : imgs) {
|
| | | detailImgs.add(imgInfo.getPicture());
|
| | | JSONObject size = new JSONObject();
|
| | | size.put("w", imgInfo.getWidth());
|
| | | size.put("h", imgInfo.getHeight());
|
| | | detailImgsSize.add(size);
|
| | | }
|
| | |
|
| | | for (ImageInfo imgInfo : imgs) {
|
| | | if (imgInfo.getWidth() <= 0) {
|
| | | detailImgsSize.clear();
|
| | | break;
|
| | | } else {
|
| | | JSONObject size = new JSONObject();
|
| | | size.put("w", imgInfo.getWidth());
|
| | | size.put("h", imgInfo.getHeight());
|
| | | detailImgsSize.add(size);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | String proportion = map.get("hongbao_goods_proportion");
|
| | | String fcRate = map.get("hongbao_fc_ratio");
|
| | | if (!StringUtil.isNullOrEmpty(imei) || !StringUtil.isNullOrEmpty(idfa)) {
|
| | | long startTime = java.lang.System.currentTimeMillis();
|
| | | TaoBaoSearchResult result = TaoKeApiUtil.guessDeviceLike(page, 50, imei, idfa);
|
| | | LogHelper.test("首页为你推荐(淘宝)加载时间:" + (java.lang.System.currentTimeMillis() - startTime));
|
| | |
|
| | | if (result != null && result.getTaoBaoGoodsBriefs() != null) {
|
| | | // 筛选
|
| | | List<TaoBaoGoodsBrief> goodsList = new ArrayList<>();
|