| | |
| | | import com.yeshi.fanli.exception.taobao.TaobaoGoodsDownException;
|
| | | import com.yeshi.fanli.exception.tlj.TaoLiJinCreateException;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.log.TaoKeLogHelper;
|
| | | import com.yeshi.fanli.service.inter.goods.ShareGoodsService;
|
| | | import com.yeshi.fanli.service.inter.goods.recommend.RecommendGoodsDeleteHistoryService;
|
| | | import com.yeshi.fanli.service.inter.monitor.BusinessEmergent110Service;
|
| | |
| | |
|
| | | @Resource
|
| | | private IntegralGetService integralGetService;
|
| | | |
| | |
|
| | | @Resource
|
| | | private TLJFreeBuyGoodsService tljFreeBuyGoodsService;
|
| | | |
| | |
|
| | | private void doTaoLiJinBuy(AcceptData acceptData, Long uid, Long auctionId, PrintWriter out) {
|
| | | JSONObject data = new JSONObject();
|
| | |
| | |
|
| | | integralGetService.addTaoLiJinBuy(uid, auctionId);
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * 获取淘宝的分享链接
|
| | |
| | | doTaoLiJinBuy(acceptData, uid, auctionId, out);
|
| | | return;
|
| | | }
|
| | | |
| | |
|
| | | ClientTBPid clientTBPid = null;
|
| | |
|
| | | String dpid = null;
|
| | |
| | |
|
| | | if (taoBaoLink == null) {
|
| | | taoBaoLink = shareGoodsService.getTaoBaoLinkForBuyWithSpecial(uid, specialId, auctionId);
|
| | | if(taoBaoLink!=null)
|
| | | clientTBPid=null;
|
| | | }
|
| | |
|
| | | data.put("native", true);
|
| | |
| | | if (!StringUtil.isNullOrEmpty(relationId)) {//
|
| | | if (source != null && "taolijin_free_buy".equals(source)) {
|
| | | taoBaoLink = shareGoodsService.getTaoLiJinLinkForBuy(uid, specialId, auctionId,
|
| | | TaoBaoConstant.TAOBAO_RELATION_AS_SPECIAL_PID);
|
| | | TaoBaoConstant.TAOBAO_RELATION_AS_SPECIAL_PID);
|
| | | } else {
|
| | | taoBaoLink = shareGoodsService.getTaoBaoLinkForShare(uid, auctionId, relationId,
|
| | | TaoBaoConstant.TAOBAO_RELATION_AS_SPECIAL_PID);
|
| | |
| | | data.put("tbPidInfo", clientTBPid);
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | |
|
| | | TaoKeLogHelper.convertLinkInfo(
|
| | | String.format("uid:%s auctionId:%s 输出结果:", uid, auctionId + "") + data.toString());
|
| | |
|
| | | // 获得金币
|
| | | integralGetService.addCouponRebate(uid);
|
| | |
|