| | |
| | | import com.yeshi.fanli.dto.vip.VIPConvertResultDTO; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoLink; |
| | | import com.yeshi.fanli.util.StringUtil; |
| | | import com.yeshi.fanli.util.goods.douyin.vo.DYConvertResult; |
| | | import com.yeshi.fanli.util.pinduoduo.PinDuoDuoUtil; |
| | | import com.yeshi.fanli.vo.common.WXXCXJumpInfoVO; |
| | | import com.yeshi.fanli.vo.goods.GoodsJumpLinkVO; |
| | |
| | | */ |
| | | public static GoodsJumpLinkVO getPDDJumpInfo(PDDConvertLinkResultVO convertUrl) { |
| | | GoodsJumpLinkVO vo = new GoodsJumpLinkVO(); |
| | | vo.set_native(true); |
| | | vo.setNativeJumpLink(PinDuoDuoUtil.getAndroidNativeURI(convertUrl.getUrl())); |
| | | vo.set_native(false); |
| | | vo.setNativeJumpLink(convertUrl.getSchema_url()); |
| | | // 暂时只能跳转微信 |
| | | // vo.setNativeJumpLink(""); |
| | | vo.setJumpLink(convertUrl.getUrl()); |
| | | if (convertUrl.getWe_app_info() != null) { |
| | | WXXCXJumpInfoVO wxxcxJumpInfoVO = new WXXCXJumpInfoVO(); |
| | |
| | | } |
| | | |
| | | |
| | | public static GoodsJumpLinkVO getDYJumpInfo(DYConvertResult link) { |
| | | GoodsJumpLinkVO vo = new GoodsJumpLinkVO(); |
| | | vo.set_native(true); |
| | | try { |
| | | vo.setNativeJumpLink(link.getDeeplink()); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | vo.setJumpLink(link.getZlink()); |
| | | return vo; |
| | | } |
| | | |
| | | |
| | | } |