package com.yeshi.fanli.util.vipshop;
|
|
public class VipShopUtil {
|
|
/**
|
* 获取分享的渠道标识
|
* @Title: getShareChanTag
|
* @Description:
|
* @param uid
|
* @return
|
* String 返回类型
|
* @throws
|
*/
|
public static String getShareChanTag(Long uid) {
|
return "share#" + uid;
|
}
|
|
/**
|
* 获取自购的渠道标识
|
* @Title: getBuyChanTag
|
* @Description:
|
* @param uid
|
* @return
|
* String 返回类型
|
* @throws
|
*/
|
public static String getBuyChanTag(Long uid) {
|
return "buy#" + uid;
|
|
}
|
|
public static String getUidFromChanTag(String tag) {
|
|
return tag.split("#")[1];
|
}
|
|
public static String getTypeFromChanTag(String tag) {
|
return tag.split("#")[0];
|
}
|
|
}
|