admin
2021-04-30 4e4af90184f5fa5b40d87e2d08d9192bfd237ef0
拼多多备案,京东、拼多多,唯品会,苏宁支持小程序跳转
1 文件已重命名
6个文件已修改
1个文件已添加
371 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java 119 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/PinDuoDuoControllerV2.java 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/suning/SuningApiUtil.java 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/vipshop/VipShopApiUtil.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/vo/goods/GoodsJumpLinkVO.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/vo/suning/SuningConvertLinkResult.java 99 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java
@@ -19,6 +19,7 @@
import javax.servlet.http.HttpServletRequest;
import com.yeshi.fanli.entity.SystemFunction;
import com.yeshi.fanli.service.inter.pdd.PDDAuthService;
import com.yeshi.fanli.util.*;
import com.yeshi.fanli.util.GsonUtil;
import com.yeshi.fanli.util.StringUtil;
@@ -148,9 +149,6 @@
    private UserInfoService userInfoService;
    @Resource
    private OrderService orderService;
    @Resource
    private BindingAccountService bindingAccountService;
    @Resource
@@ -162,8 +160,6 @@
    @Resource
    private BusinessSystemService businessSystemService;
    @Resource
    private ShamUserService shamUserService;
    @Resource
    private ThreeSaleSerivce threeSaleSerivce;
@@ -177,8 +173,6 @@
    @Resource
    private HongBaoManageService hongBaoManageService;
    @Resource
    private UserAccountService loginService;
    @Resource
    private RedisManager redisManager;
@@ -219,8 +213,6 @@
    @Resource
    private AppVersionService appVersionService;
    @Resource
    private HongBaoV2CountService hongBaoV2CountService;
    @Resource
    private AccountMessageService accountMessageService;
@@ -236,12 +228,6 @@
    @Resource
    private BindRemindService bindRemindService;
    @Resource
    private RedPackBalanceService redPackBalanceService;
    @Resource
    private UserRankService userRankService;
    @Resource
    private UserVIPInfoService userVIPInfoService;
@@ -269,6 +255,9 @@
    @Resource
    private PreviewInfoService previewInfoService;
    @Resource
    private PDDAuthService pddAuthService;
    private static final String EXTRACT_MIN_MONEY = ConfigKeyEnum.extractMoneyMin.getKey();
    private static final String EXTRACT_MAX_MONEY = ConfigKeyEnum.extractMoneyMAX.getKey();
@@ -2285,8 +2274,8 @@
            data.put("user", JsonUtil.getConvertBigDecimalToStringBuilder(gsonBuilder).create().toJson(userInfo));
            //拼多多是否绑定
            if (VersionUtil.greaterThan_2_1_5(acceptData.getPlatform(), acceptData.getVersion())) {
                boolean pddBuyBind = PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_FANLI, PinDuoDuoUtil.getCustomParams(uid));
                boolean pddShareBind = PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_SHARE, PinDuoDuoUtil.getCustomParams(uid));
                boolean pddBuyBind = PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_FANLI, pddAuthService.getFanliCustomParams(uid));
                boolean pddShareBind = PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_SHARE, pddAuthService.getFanliCustomParams(uid));
                data.put("pddBuyBind", pddBuyBind);
                data.put("pddShareBind", pddShareBind);
            }
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java
@@ -1,7 +1,10 @@
package com.yeshi.fanli.controller.client.v2;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -17,7 +20,8 @@
import com.yeshi.fanli.util.*;
import com.yeshi.fanli.vo.common.WXXCXJumpInfoVO;
import com.yeshi.fanli.vo.pdd.PDDConvertLinkResultVO;
import com.yeshi.fanli.vo.pdd.PDDJumpLinkVO;
import com.yeshi.fanli.vo.goods.GoodsJumpLinkVO;
import com.yeshi.fanli.vo.suning.SuningConvertLinkResult;
import org.json.simple.JSONArray;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -31,7 +35,6 @@
import com.yeshi.fanli.dto.jd.JDCouponInfo;
import com.yeshi.fanli.dto.pdd.PDDGoodsDetail;
import com.yeshi.fanli.dto.pdd.PDDGoodsResult;
import com.yeshi.fanli.dto.pdd.PDDPromotionUrl;
import com.yeshi.fanli.dto.pdd.PDDSearchFilter;
import com.yeshi.fanli.dto.suning.SuningGoodsInfo;
import com.yeshi.fanli.dto.suning.SuningGoodsInfoRecommend;
@@ -71,23 +74,18 @@
import com.yeshi.fanli.service.inter.dynamic.GoodsEvaluateService;
import com.yeshi.fanli.service.inter.goods.CollectionGoodsV2Service;
import com.yeshi.fanli.service.inter.goods.ScanHistoryV2Service;
import com.yeshi.fanli.service.inter.goods.TaoBaoGoodsBriefService;
import com.yeshi.fanli.service.inter.jd.JDGoodsClassService;
import com.yeshi.fanli.service.inter.money.UserMoneyExtraService;
import com.yeshi.fanli.service.inter.order.OrderHongBaoMoneyComputeService;
import com.yeshi.fanli.service.inter.order.config.HongBaoManageService;
import com.yeshi.fanli.service.inter.redpack.UserTaoLiJinNewbiesService;
import com.yeshi.fanli.service.inter.taobao.TLJBuyGoodsService;
import com.yeshi.fanli.service.inter.taobao.TLJFreeBuyGoodsService;
import com.yeshi.fanli.service.inter.taobao.TaoBaoGoodsUpdateService;
import com.yeshi.fanli.service.inter.taobao.TaoBaoShopService;
import com.yeshi.fanli.service.inter.taobao.TaoBaoUnionConfigService;
import com.yeshi.goods.facade.service.DaTaoKeGoodsDetailV2Service;
import com.yeshi.fanli.service.inter.tlj.ConfigTaoLiJinService;
import com.yeshi.fanli.service.inter.user.ShamUserService;
import com.yeshi.fanli.service.inter.user.TBPidService;
import com.yeshi.fanli.service.inter.user.UserGoodsStorageService;
import com.yeshi.fanli.service.inter.user.UserInfoExtraService;
import com.yeshi.fanli.service.inter.user.UserInfoService;
import com.yeshi.fanli.service.inter.user.integral.IntegralGetService;
import com.yeshi.fanli.service.inter.user.vip.UserVIPInfoService;
@@ -1680,9 +1678,21 @@
            }
        }
        JSONObject data = new JSONObject();
        data.put("native", true);
        data.put("jumpLink", jumpLink);
        GoodsJumpLinkVO vo = new GoodsJumpLinkVO();
        vo.set_native(true);
        vo.setJumpLink(jumpLink);
        vo.setNativeJumpLink(jumpLink);
        try {
            String wxPage = "pages/union/proxy/proxy?spreadUrl=" + URLEncoder.encode(jumpLink, "UTF-8");
            WXXCXJumpInfoVO wxxcxJumpInfoVO = new WXXCXJumpInfoVO();
            wxxcxJumpInfoVO.setUserName("gh_45b306365c3d");
            wxxcxJumpInfoVO.setPath(wxPage);
            vo.setWxxcxJumpInfo(wxxcxJumpInfoVO);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        JSONObject data = JSONObject.fromObject(new Gson().toJson(vo));
        data.put("native", vo.is_native());
        out.print(JsonUtil.loadTrueResult(data));
    }
@@ -1749,9 +1759,22 @@
            }
        }
        JSONObject data = new JSONObject();
        data.put("native", true);
        data.put("jumpLink", jumpLink);
        GoodsJumpLinkVO vo = new GoodsJumpLinkVO();
        vo.set_native(true);
        vo.setJumpLink(jumpLink);
        vo.setNativeJumpLink(jumpLink);
        try {
            String wxPage = "pages/union/proxy/proxy?spreadUrl=" + URLEncoder.encode(jumpLink, "UTF-8");
            WXXCXJumpInfoVO wxxcxJumpInfoVO = new WXXCXJumpInfoVO();
            wxxcxJumpInfoVO.setUserName("gh_45b306365c3d");
            wxxcxJumpInfoVO.setPath(wxPage);
            vo.setWxxcxJumpInfo(wxxcxJumpInfoVO);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        JSONObject data = JSONObject.fromObject(new Gson().toJson(vo));
        data.put("native", vo.is_native());
        out.print(JsonUtil.loadTrueResult(data));
        // 获得金币
@@ -1837,7 +1860,7 @@
            LogHelper.test(String.format("拼多多转链:uid:%s data:%s", uid + "", data.toString()));
        }
        PDDJumpLinkVO vo = new PDDJumpLinkVO();
        GoodsJumpLinkVO vo = new GoodsJumpLinkVO();
        vo.set_native(true);
        vo.setNativeJumpLink(PinDuoDuoUtil.getAndroidNativeURI(convertUrl.getUrl()));
        vo.setJumpLink(convertUrl.getUrl());
@@ -1856,7 +1879,7 @@
    }
    /**
     * 拼多多购买链接
     * 唯品会购买链接
     *
     * @param acceptData
     * @param uid
@@ -1897,12 +1920,21 @@
        }
        VIPConvertResultDTO convertUrl = VipShopApiUtil.convertLink(id + "", tag);
        JSONObject data = new JSONObject();
        data.put("native", true);
        data.put("jumpLink", convertUrl.getUrl());
        data.put("nativeJumpLink", convertUrl.getDeeplinkUrl());
        out.print(JsonUtil.loadTrueResult(data));
        GoodsJumpLinkVO vo = new GoodsJumpLinkVO();
        vo.set_native(true);
        vo.setJumpLink(convertUrl.getUrl());
        vo.setNativeJumpLink(convertUrl.getDeeplinkUrl());
        if (!StringUtil.isNullOrEmpty(convertUrl.getVipWxUrl())) {
            WXXCXJumpInfoVO wxxcxJumpInfoVO = new WXXCXJumpInfoVO();
            wxxcxJumpInfoVO.setUserName("gh_8ed2afad9972");
            wxxcxJumpInfoVO.setPath(convertUrl.getVipWxUrl());
            vo.setWxxcxJumpInfo(wxxcxJumpInfoVO);
        }
        JSONObject data = JSONObject.fromObject(new Gson().toJson(vo));
        data.put("native", vo.is_native());
        out.print(JsonUtil.loadTrueResult(data));
        // 获得金币
        integralGetService.addCouponRebate(uid);
    }
@@ -1944,12 +1976,31 @@
        String quanUrl = null;
        if (!StringUtil.isNullOrEmpty(goods.getCouponInfo().getCouponUrl()))
            quanUrl = goods.getCouponInfo().getCouponUrl();
        String link = SuningApiUtil.convertLink(SuningUtil.getProductUrl(supplierCode, goodsCode), quanUrl,
        SuningConvertLinkResult link = SuningApiUtil.convertLinkNew(goodsCode, supplierCode,
                pid, uid + "");
        JSONObject data = new JSONObject();
        data.put("native", false);
        data.put("jumpLink", link);
        GoodsJumpLinkVO vo = new GoodsJumpLinkVO();
        vo.set_native(false);
        try {
            vo.setJumpLink(URLDecoder.decode(link.getWapExtendUrl(), "UTF-8"));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        if (!StringUtil.isNullOrEmpty(link.getSpPageUrl())) {
            WXXCXJumpInfoVO wxxcxJumpInfoVO = new WXXCXJumpInfoVO();
            wxxcxJumpInfoVO.setUserName("gh_1d1e15e90afc");
            try {
                wxxcxJumpInfoVO.setPath(URLDecoder.decode(link.getSpPageUrl(), "UTF-8"));
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();
            }
            vo.setWxxcxJumpInfo(wxxcxJumpInfoVO);
        }
        JSONObject data = JSONObject.fromObject(new Gson().toJson(vo));
        data.put("native", vo.is_native());
        out.print(JsonUtil.loadTrueResult(data));
        // 获得金币
        integralGetService.addCouponRebate(uid);
@@ -2135,8 +2186,24 @@
        link = JDApiUtil.convertLinkWithSubUnionId(link, null, null, JDApiUtil.POSITION_FANLI + "", uid + "");
        JSONObject data = new JSONObject();
        data.put("link", link);
        GoodsJumpLinkVO vo = new GoodsJumpLinkVO();
        vo.set_native(true);
        vo.setJumpLink(link);
        vo.setNativeJumpLink(link);
        try {
            String wxPage = "pages/union/proxy/proxy?spreadUrl=" + URLEncoder.encode(link, "UTF-8");
            WXXCXJumpInfoVO wxxcxJumpInfoVO = new WXXCXJumpInfoVO();
            wxxcxJumpInfoVO.setUserName("gh_45b306365c3d");
            wxxcxJumpInfoVO.setPath(wxPage);
            vo.setWxxcxJumpInfo(wxxcxJumpInfoVO);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        JSONObject data = JSONObject.fromObject(new Gson().toJson(vo));
        data.put("native", vo.is_native());
        JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
    }
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/PinDuoDuoControllerV2.java
@@ -6,11 +6,12 @@
import javax.annotation.Resource;
import com.yeshi.fanli.service.inter.pdd.PDDAuthService;
import com.yeshi.fanli.util.pinduoduo.PinDuoDuoApiUtil;
import com.yeshi.fanli.util.pinduoduo.PinDuoDuoUtil;
import com.yeshi.fanli.vo.common.WXXCXJumpInfoVO;
import com.yeshi.fanli.vo.pdd.PDDConvertLinkResultVO;
import com.yeshi.fanli.vo.pdd.PDDJumpLinkVO;
import com.yeshi.fanli.vo.goods.GoodsJumpLinkVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.yeshi.utils.JsonUtil;
@@ -50,25 +51,16 @@
    private OrderHongBaoMoneyComputeService orderHongBaoMoneyComputeService;
    @Resource
    private TaoBaoGoodsBriefService taoBaoGoodsBriefService;
    @Resource
    private JumpDetailV2Service jumpDetailV2Service;
    @Resource
    private DaTaoKeGoodsService daTaoKeGoodsService;
    @Resource
    private SwiperPictureService swiperPictureService;
    @Resource
    private QualityGoodsService qualityGoodsService;
    @Resource
    private SpecialService specialService;
    @Resource
    private PDDGoodsService pddGoodsService;
    @Resource
    private PDDAuthService pddAuthService;
    /**
@@ -144,9 +136,9 @@
            pid = PinDuoDuoApiUtil.PID_SHARE;
        }
        PDDConvertLinkResultVO authLink = PinDuoDuoApiUtil.getAuthLink(pid, PinDuoDuoUtil.getCustomParams(uid));
        PDDConvertLinkResultVO authLink = PinDuoDuoApiUtil.getAuthLink(pid, pddAuthService.getFanliCustomParams(uid));
        PDDJumpLinkVO pddJumpLinkVO = new PDDJumpLinkVO();
        GoodsJumpLinkVO pddJumpLinkVO = new GoodsJumpLinkVO();
        pddJumpLinkVO.set_native(true);
        pddJumpLinkVO.setJumpLink(authLink.getMobile_url());
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java
@@ -12,6 +12,7 @@
import com.yeshi.fanli.entity.SystemEnum;
import com.yeshi.fanli.exception.taobao.TaoBaoConvertLinkException;
import com.yeshi.fanli.service.inter.pdd.PDDAuthService;
import com.yeshi.fanli.service.manger.goods.TaoBaoLinkManager;
import com.yeshi.fanli.util.*;
import com.yeshi.fanli.util.StringUtil;
@@ -144,6 +145,9 @@
    @Resource
    private UserTaoLiJinRecordService userTaoLiJinRecordService;
    @Resource
    private PDDAuthService pddAuthService;
    private List<ShareGoodsCommentChoiceInfo> getCommentChoiceList(String token, String link, String inviteCode,
                                                                   BigDecimal fanliMoney) {
@@ -892,8 +896,14 @@
        //查询当前用户是否授权
        if (VersionUtil.greaterThan_2_1_5(acceptData.getPlatform(), acceptData.getVersion())) {
            if (!PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_SHARE, PinDuoDuoUtil.getCustomParams(uid))) {
            if (!PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_SHARE, pddAuthService.getFanliCustomParams(uid))) {
                JsonUtil.loadFalseResult(20001, "尚未备案,请先备案");
                return;
            }
        } else {
            if (System.currentTimeMillis() > TimeUtil.convertToTimeTemp("2021-05-01", "yyyy-MM-dd") && !PinDuoDuoApiUtil.isAuth(PinDuoDuoApiUtil.PID_SHARE, pddAuthService.getFanliCustomParams(uid))) {
                JsonUtil.loadFalseResult(20001, "请升级到最新版");
                return;
            }
        }
fanli/src/main/java/com/yeshi/fanli/util/suning/SuningApiUtil.java
@@ -10,6 +10,7 @@
import java.util.List;
import java.util.Map;
import com.yeshi.fanli.vo.suning.SuningConvertLinkResult;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.methods.PostMethod;
@@ -111,12 +112,12 @@
    /**
     * 查询商品
     *
     * @param model
     * @return List<SuningGoodsInfo> 返回类型
     * @throws
     * @Title: searchGoods
     * @Description: 
     * @param model
     * @return
     * List<SuningGoodsInfo> 返回类型
     * @throws
     */
    public static List<SuningGoodsInfo> searchGoods(SuningQueryModel model) {
        model.setPicWidth(320);
@@ -142,12 +143,12 @@
    /**
     * 查询商品
     *
     * @param model
     * @return List<SuningGoodsInfo> 返回类型
     * @throws
     * @Title: searchGoods
     * @Description: 
     * @param model
     * @return
     * List<SuningGoodsInfo> 返回类型
     * @throws
     */
    public static List<SuningGoodsInfo> searchGoodsOld(SuningQueryModel model) {
        model.setPicWidth(320);
@@ -198,12 +199,12 @@
    /**
     * 查询关联商品
     *
     * @param model
     * @return List<SuningGoodsInfo> 返回类型
     * @throws
     * @Title: searchGoods
     * @Description: 
     * @param model
     * @return
     * List<SuningGoodsInfo> 返回类型
     * @throws
     */
    public static List<SuningGoodsInfoRecommend> getRecommendGoods(String goodsCode, String supplierCode) {
        JSONObject model = new JSONObject();
@@ -279,17 +280,42 @@
        return link;
    }
    public static SuningConvertLinkResult convertLinkNew(String commCode, String mertCode, String pid, String subUser) {
        JSONObject model = new JSONObject();
        if (commCode != null)
            model.put("commCode", commCode);
        if (!StringUtil.isNullOrEmpty(mertCode))
            model.put("mertCode", mertCode);
        if (pid != null)
            model.put("adBookId", pid);
        if (subUser != null)
            model.put("subUser", subUser);
        String key = "queryStorepromotionurl";
        String result = baseRequest("suning.netalliance.storepromotionurl.query", key, model);
        System.out.println(result);
        JSONObject resultJSON = JSONObject.fromObject(result);
        JSONObject json = resultJSON.optJSONObject("sn_responseContent").optJSONObject("sn_body").optJSONObject(key);
        return new Gson().fromJson(json.toString(), SuningConvertLinkResult.class);
    }
    /**
     * 0
     * @Title: getOrderList
     * @Description:
     *
     * @param startTime
     * @param endTime
     * @param page
     * @param orderLineStatus  (0:全部状态;1:等待付款;2:支付完成;3:退款;4:订单已取消;5:确认收货)
     * @return
     * SuningOrderQueryResultDTO 返回类型
     * @return SuningOrderQueryResultDTO 返回类型
     * @throws
     * @Title: getOrderList
     * @Description:
     */
    public static SuningOrderQueryResultDTO getOrderList(Date startTime, Date endTime, int page, int orderLineStatus) {
        JSONObject model = new JSONObject();
@@ -337,14 +363,14 @@
    /**
     * 常规转链
     * @Title: convertCommonLink
     * @Description:
     *
     * @param url
     * @param pid
     * @param subUser
     * @return
     * String 返回类型
     * @return String 返回类型
     * @throws
     * @Title: convertCommonLink
     * @Description:
     */
    public static String convertCommonLink(String url, String pid, String subUser) {
        JSONObject model = new JSONObject();
@@ -354,6 +380,7 @@
        String key = "queryCustompromotionurl";
        String result = baseRequest("suning.netalliance.custompromotionurl.query", key, model);
        System.out.println(result);
        JSONObject resultJSON = JSONObject.fromObject(result);
        resultJSON = resultJSON.optJSONObject("sn_responseContent");
        String shortUrl = resultJSON.optJSONObject("sn_body").optJSONObject("queryCustompromotionurl")
@@ -363,13 +390,13 @@
    /**
     * 商品精选接口
     * @Title: getSelectRecommendGoods
     * @Description:
     *
     * @param eliteId
     * @param page
     * @return
     * List<SuningGoodsInfo> 返回类型
     * @return List<SuningGoodsInfo> 返回类型
     * @throws
     * @Title: getSelectRecommendGoods
     * @Description:
     */
    public static List<SuningGoodsInfo> getSelectRecommendGoods(int eliteId, int page) {
        JSONObject model = new JSONObject();
@@ -395,4 +422,5 @@
        return null;
    }
}
fanli/src/main/java/com/yeshi/fanli/util/vipshop/VipShopApiUtil.java
@@ -34,7 +34,6 @@
 * TODO 未完成 唯品会接口
 * 
 * @author Administrator
 *
 */
public class VipShopApiUtil {
@@ -122,12 +121,12 @@
    /**
     * 搜索
     *
     * @param searchFilter
     * @return VIPSearchResult 返回类型
     * @throws
     * @Title: search
     * @Description: 
     * @param searchFilter
     * @return
     * VIPSearchResult 返回类型
     * @throws
     */
    public static VIPSearchResult search(VIPSearchFilter searchFilter) {
        Map<String, String> taskParams = new HashMap<>();
@@ -173,7 +172,6 @@
        }
        return null;
    }
    
    
    public static VIPSearchResult getGoodsList(int channelType,int page) {
@@ -293,4 +291,10 @@
        return null;
    }
    public static void main(String[] args) {
        convertLink("6919237495414585303","437032");
    }
}
fanli/src/main/java/com/yeshi/fanli/vo/goods/GoodsJumpLinkVO.java
File was renamed from fanli/src/main/java/com/yeshi/fanli/vo/pdd/PDDJumpLinkVO.java
@@ -1,11 +1,11 @@
package com.yeshi.fanli.vo.pdd;
package com.yeshi.fanli.vo.goods;
import com.yeshi.fanli.vo.common.WXXCXJumpInfoVO;
/**
 * 拼多多跳转链接
 */
public class PDDJumpLinkVO {
public class GoodsJumpLinkVO {
    private String jumpLink;
    private boolean _native;
    private String nativeJumpLink;
fanli/src/main/java/com/yeshi/fanli/vo/suning/SuningConvertLinkResult.java
New file
@@ -0,0 +1,99 @@
package com.yeshi.fanli.vo.suning;
public class SuningConvertLinkResult {
    /**
     * commCode : 617763437
     * adBookId : 666526
     * mertCode : 0000000000
     * appId : wx681b1e78da02dd16
     * spPageUrl : pages%2Ffourth%2Ffourth%3FproductId%3D617763437%26shop%3D0000000000%26union%3DLjyHdSTX
     * spType : 1
     * wapExtendUrl : https%3A%2F%2Fsugs.suning.com%2Foutstation.htm%3Fp%3DBFpQFQpbDw1CFRBpLy4wXRAZAEpQQi1tZ39bDXhkdHdbSVcNYjlkbhoWGBYZGhkaKRMXaRFCSlxzUR1FVF4CGFhWUEAERUoKWBNaJnh_L1JETFRBUgp-JWEzWxMpJzA2W1xJHHw2ITBDSE8ISkVEBSVXSTpTFw1HcFZRQ1ZcCx1RUktFAg4BDhcXFW1kICcJHgYdD0dVbHpnf1tebGNwa1NKRkBjf2dmEBYcBQoJUnZ3UFIzaxEdATULPVFcMBlxQx8%26sub_user%3D323030
     * isSupportBySp : 1
     * pcExtendUrl : https%3A%2F%2Fsugs.suning.com%2Foutstation.htm%3Fp%3DAFQFEFELUg4XEhBseikxVkUfUEdSEn5oZH1fX3hifCJbSVcNYjlkbhoWGBYZGhkaKRMXaRFCSlxzUR1FVF4CGFhWUEAERUoKWBNaJnt_L1JETFRBUgp-JWEzWxMpJzA2EklJXiI3OzpfRVwIWl9HQztCCD1JGVZYcFZRQ1ZcCx1RTVJCBA4ACxAQEXQiPD4IDgYdUEdVbGtlfVhCcWdpdFhTV0BodmxkGhILBQpRdQggUUsTQxAQHS06Q0k6TmcPHA%26sub_user%3D323030
     */
    private String commCode;
    private String adBookId;
    private String mertCode;
    private String appId;
    private String spPageUrl;
    private String spType;
    private String wapExtendUrl;
    private String isSupportBySp;
    private String pcExtendUrl;
    public String getCommCode() {
        return commCode;
    }
    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }
    public String getAdBookId() {
        return adBookId;
    }
    public void setAdBookId(String adBookId) {
        this.adBookId = adBookId;
    }
    public String getMertCode() {
        return mertCode;
    }
    public void setMertCode(String mertCode) {
        this.mertCode = mertCode;
    }
    public String getAppId() {
        return appId;
    }
    public void setAppId(String appId) {
        this.appId = appId;
    }
    public String getSpPageUrl() {
        return spPageUrl;
    }
    public void setSpPageUrl(String spPageUrl) {
        this.spPageUrl = spPageUrl;
    }
    public String getSpType() {
        return spType;
    }
    public void setSpType(String spType) {
        this.spType = spType;
    }
    public String getWapExtendUrl() {
        return wapExtendUrl;
    }
    public void setWapExtendUrl(String wapExtendUrl) {
        this.wapExtendUrl = wapExtendUrl;
    }
    public String getIsSupportBySp() {
        return isSupportBySp;
    }
    public void setIsSupportBySp(String isSupportBySp) {
        this.isSupportBySp = isSupportBySp;
    }
    public String getPcExtendUrl() {
        return pcExtendUrl;
    }
    public void setPcExtendUrl(String pcExtendUrl) {
        this.pcExtendUrl = pcExtendUrl;
    }
}