| | |
| | | import com.yeshi.fanli.util.jd.JDUtil;
|
| | | import com.yeshi.fanli.util.pinduoduo.PinDuoDuoApiUtil;
|
| | | import com.yeshi.fanli.util.pinduoduo.PinDuoDuoUtil;
|
| | | import com.yeshi.fanli.util.taobao.HaoDanKuApiUtil;
|
| | | import com.yeshi.fanli.util.taobao.TaoBaoUtil;
|
| | | import com.yeshi.fanli.util.taobao.TaoKeApiUtil;
|
| | |
|
| | |
| | | throw new Exception("商品信息获取失败");
|
| | | String link = null;
|
| | | if (share) {
|
| | | TaoBaoGoodsBrief goods = TaoKeApiUtil.specialConvertCoupon(auctionId,
|
| | | new TaoKeAppInfo(TaoBaoConstant.TAOBAO_AUTH_APPKEY, TaoBaoConstant.TAOBAO_AUTH_APPSECRET,
|
| | | TaoBaoConstant.TAOBAO_RELATION_PID_DEFAULT));
|
| | | if (goods == null)
|
| | | throw new Exception("商品转链失败");
|
| | |
|
| | | link = goods.getCouponLink();
|
| | | if (StringUtil.isNullOrEmpty(link)) {
|
| | | link = goods.getAuctionUrl();
|
| | | }
|
| | | //暂时调用好单库API
|
| | | link=HaoDanKuApiUtil.getInstance().convertLink(auctionId, TaoBaoConstant.TAOBAO_RELATION_PID_DEFAULT, null);
|
| | | // TaoBaoGoodsBrief goods = TaoKeApiUtil.specialConvertCoupon(auctionId,
|
| | | // new TaoKeAppInfo(TaoBaoConstant.TAOBAO_AUTH_APPKEY, TaoBaoConstant.TAOBAO_AUTH_APPSECRET,
|
| | | // TaoBaoConstant.TAOBAO_RELATION_PID_DEFAULT));
|
| | | // if (goods == null)
|
| | | // throw new Exception("商品转链失败");
|
| | | //
|
| | | // link = goods.getCouponLink();
|
| | | // if (StringUtil.isNullOrEmpty(link)) {
|
| | | // link = goods.getAuctionUrl();
|
| | | // }
|
| | | if (StringUtil.isNullOrEmpty(link))
|
| | | throw new Exception("商品转链失败");
|
| | | link += "&relationId=" + relationId;
|