| | |
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import com.yeshi.fanli.entity.SystemFunction;
|
| | | import com.yeshi.fanli.service.inter.pdd.PDDAuthService;
|
| | | import com.yeshi.fanli.service.inter.user.tb.UserExtraTaoBaoInfoService;
|
| | | import com.yeshi.fanli.util.*;
|
| | | import org.json.simple.JSONArray;
|
| | |
| | |
|
| | | @Resource
|
| | | private UserExtraTaoBaoInfoService userExtraTaoBaoInfoService;
|
| | |
|
| | |
|
| | | @Resource
|
| | | private PDDAuthService pddAuthService;
|
| | |
|
| | | private ConfigParamsDTO getParamsDTO(String platform, String version, Long uid, SystemEnum system) {
|
| | | UserLevelEnum level = UserLevelEnum.daRen;
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | PDDGoodsDetail pddGoods = PinDuoDuoApiUtil.getGoodsDetail(id,PinDuoDuoApiUtil.PID_FANLI,uid+"");
|
| | | PDDGoodsDetail pddGoods = PinDuoDuoApiUtil.getGoodsDetail(id, PinDuoDuoApiUtil.PID_FANLI, pddAuthService.getFanliCustomParams(uid));
|
| | | if (pddGoods == null) {
|
| | | out.print(JsonUtil.loadFalseResult(2, "商品不存在"));
|
| | | return;
|
| | |
| | |
|
| | | if (VersionUtil.greaterThan_2_1_2(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | getCloudInfo(acceptData, uid, goodsDetail, extraVO); // 云发单文案信息
|
| | | }
|
| | |
|
| | | if (extraVO.getListCouponUser() == null) {
|
| | | extraVO.setListCouponUser(new ArrayList<>());
|
| | | }
|
| | |
|
| | | if (extraVO.getListShareUser() == null) {
|
| | | extraVO.setListShareUser(new ArrayList<>());
|
| | | }
|
| | |
|
| | | // 免单商品
|
| | |
| | | shareInfoVO.setHelpLink(helpLink);
|
| | | extraVO.setShare(shareInfoVO);
|
| | |
|
| | | if (extraVO.getListShareUser() == null) {
|
| | | extraVO.setListShareUser(new ArrayList<>());
|
| | | }
|
| | |
|
| | | if (extraVO.getListCouponUser() == null) {
|
| | | extraVO.setListCouponUser(new ArrayList<>());
|
| | | }
|
| | |
|
| | | // 云发单文案信息
|
| | | getCloudInfo(acceptData, uid, goodsDetail, extraVO);
|
| | |
|
| | |
| | | ShareVO shareInfoVO = new ShareVO();
|
| | | shareInfoVO.setHelpLink(helpLink);
|
| | | extraVO.setShare(shareInfoVO);
|
| | |
|
| | | if (extraVO.getListShareUser() == null) {
|
| | | extraVO.setListShareUser(new ArrayList<>());
|
| | | }
|
| | |
|
| | | if (extraVO.getListCouponUser() == null) {
|
| | | extraVO.setListCouponUser(new ArrayList<>());
|
| | | }
|
| | |
|
| | | // 云发单文案信息
|
| | | getCloudInfo(acceptData, uid, goodsDetail, extraVO);
|
| | |
| | | }
|
| | |
|
| | | //TODO 是否需要返回绑定链接
|
| | | boolean auth = PinDuoDuoApiUtil.isAuth(pid, uid + "");
|
| | | PDDPromotionUrl convertUrl = PinDuoDuoApiUtil.convert(id, pid + "", uid + "", !auth);
|
| | | String customParams = pddAuthService.getFanliCustomParams(uid);
|
| | | boolean auth = PinDuoDuoApiUtil.isAuth(pid, customParams);
|
| | | PDDPromotionUrl convertUrl = PinDuoDuoApiUtil.convert(id, pid + "", customParams, !auth);
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("native", true);
|
| | | data.put("jumpLink", convertUrl.getUrl());
|