| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param acceptData |
| | | * @param uid |
| | | * -用户ID |
| | | * @param uid -用户ID |
| | | * @param goodsId-商品ID |
| | | * @param source |
| | | * @param totalNum |
| | | * @param goodsType |
| | | * @param needGoods |
| | | * -是否需要商品信息 |
| | | * @param needGoods -是否需要商品信息 |
| | | * @param request |
| | | * @param out |
| | | */ |
| | |
| | | } |
| | | |
| | | shareInfo.setClickUrl(url); |
| | | if ("android".equalsIgnoreCase(platform)) { |
| | | shareInfo.setToken(TaoBaoUtil.filterTaoToken(taoBaoLink.getTaoToken())); |
| | | } else { |
| | | shareInfo.setToken(taoBaoLink.getTaoToken()); |
| | | } |
| | | |
| | | shareInfo.setRule(configService.getValue(ConfigKeyEnum.shareSingleGoodsRule.getKey(),system)); |
| | | shareInfo.setPictUrl(TbImgUtil.getTBSizeImg(taoBaoLink.getGoods().getPictUrl(), 500)); |
| | | |
| | |
| | | commentText = shareInfo.getShareText(); |
| | | recommendText = shareInfo.getDescText(); |
| | | } |
| | | |
| | | if ("ios".equalsIgnoreCase(platform)) { |
| | | shareInfo.setCommentText(taoBaoLink.getTaoToken()); |
| | | } else |
| | | shareInfo.setCommentText(deleteBlankLine(commentText)); |
| | | shareInfo.setRecommendText(deleteBlankLine(recommendText)); |
| | | |
| | |
| | | // AESUtil.encrypt(uid + "", Constant.UIDAESKEY), |
| | | // goodsId + ""); |
| | | |
| | | String jumpLink = PinDuoDuoApiUtil.getPromotionUrl(goodsId, PinDuoDuoApiUtil.PID_SHARE + "", uid + ""); |
| | | String jumpLink = PinDuoDuoApiUtil.getPromotionUrl(goods.getGoodsSign(), PinDuoDuoApiUtil.PID_SHARE + "", uid + ""); |
| | | |
| | | SystemEnum system=SystemInfoUtil.getSystem(acceptData); |
| | | |
| | |
| | | |
| | | /** |
| | | * 唯品会分享 |
| | | * @Title: createVIPShare |
| | | * @Description: |
| | | * |
| | | * @param acceptData |
| | | * @param uid |
| | | * @param goodsId |
| | | * @param source |
| | | * @param needGoods |
| | | * @param out |
| | | * void 返回类型 |
| | | * @param out void 返回类型 |
| | | * @throws |
| | | * @Title: createVIPShare |
| | | * @Description: |
| | | */ |
| | | public void createVIPShare(AcceptData acceptData, Long uid, Long goodsId, String source, boolean needGoods, |
| | | PrintWriter out) { |
| | |
| | | |
| | | /** |
| | | * 苏宁易购分享 |
| | | * @Title: createSuningShare |
| | | * @Description: |
| | | * |
| | | * @param acceptData |
| | | * @param uid |
| | | * @param goodsId |
| | | * @param source |
| | | * @param needGoods |
| | | * @param out |
| | | * void 返回类型 |
| | | * @param out void 返回类型 |
| | | * @throws |
| | | * @Title: createSuningShare |
| | | * @Description: |
| | | */ |
| | | public void createSuningShare(AcceptData acceptData, Long uid, String goodsId, String source, boolean needGoods, |
| | | PrintWriter out) { |
| | |
| | | // goodsId + ""); |
| | | // String shortLink = HttpUtil.getShortLink(url); |
| | | |
| | | String shortLink = PinDuoDuoApiUtil.getPromotionUrl(goodsId, PinDuoDuoApiUtil.PID_SHARE + "", uid + ""); |
| | | String shortLink = PinDuoDuoApiUtil.getPromotionUrl(goods.getGoodsSign(), PinDuoDuoApiUtil.PID_SHARE + "", uid + ""); |
| | | |
| | | // // 创建口令 |
| | | // String token = PinDuoDuoApiUtil.createGenerate(goodsId); |
| | |
| | | |
| | | /** |
| | | * 唯品会分享 |
| | | * |
| | | * @param goodsType |
| | | * @param uid |
| | | * @param template |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | private void createSuNingViewText(Integer goodsType, Long uid, String template, String goodsId, Boolean hasCoupon, |
| | | PrintWriter out) { |
| | | String[] ids = SuningUtil.getGoodsIdDetail(goodsId); |
| | |
| | | data.put("content", content); |
| | | out.print(JsonUtil.loadTrueResult(data)); |
| | | } |
| | | |
| | | /** |
| | | * 获取分享模板 |
| | | * |
| | |
| | | * |
| | | * @param acceptData |
| | | * @param uid |
| | | * @param hasCoupon |
| | | * -是否有券 |
| | | * @param hasCoupon -是否有券 |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "resetShareTextTemplate", method = RequestMethod.POST) |