| | |
| | | if (auctionId == null || auctionId <= 0)
|
| | | throw new ShareGoodsException(1, "商品ID不能为空");
|
| | |
|
| | | TaoKeAppInfo app = new TaoKeAppInfo();
|
| | | app.setAppKey(TaoBaoConstant.TAOBAO_AUTH_APPKEY);
|
| | | app.setAppSecret(TaoBaoConstant.TAOBAO_AUTH_APPSECRET);
|
| | | if (pid == null) {
|
| | | app.setPid(TaoBaoConstant.TAOBAO_SPECIAL_PID_DEFAULT);
|
| | | } else {
|
| | | app.setPid(pid);
|
| | | TaoBaoGoodsBrief goods = null;
|
| | | try {
|
| | | goods = TaoKeApiUtil.searchGoodsDetail(auctionId);
|
| | | } catch (TaobaoGoodsDownException e) {
|
| | | throw new ShareGoodsException(1, "该商品已下架");
|
| | | }
|
| | |
|
| | | TaoBaoGoodsBrief goods = TaoKeApiUtil.specialConvertCoupon(auctionId, app);
|
| | | if (goods == null)
|
| | | throw new ShareGoodsException(1, "转链接失败");
|
| | | throw new ShareGoodsException(1, "该商品已下架");
|
| | |
|
| | | String taoLiJinLink = null;
|
| | | try {
|