admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.yeshi.fanli.service.manger.goods.vipshop;
 
import com.yeshi.fanli.dto.vip.VIPConvertResultDTO;
import com.yeshi.fanli.entity.SystemPIDInfo;
import com.yeshi.fanli.util.vipshop.VipShopApiUtil;
import com.yeshi.fanli.util.vipshop.VipShopUtil;
import org.springframework.stereotype.Component;
 
@Component
public class VipShopConvertLinkManager {
 
 
    public VIPConvertResultDTO convertGoods(String goodsId, Long uid, SystemPIDInfo.PidType pidType) {
        String tag = null;
        if (pidType == SystemPIDInfo.PidType.fanli)
            tag = VipShopUtil.getBuyChanTag(uid);
        else if (pidType == SystemPIDInfo.PidType.coupon) {
            tag = VipShopUtil.getCouponChanTag();
        } else if (pidType == SystemPIDInfo.PidType.share) {
            tag = VipShopUtil.getShareChanTag(uid);
        }
        VIPConvertResultDTO convertUrl = VipShopApiUtil.convertLink(goodsId, tag);
        return convertUrl;
    }
 
 
}