package com.yeshi.buwan.util.vip;
|
|
import com.yeshi.buwan.domain.vip.OrderType;
|
|
public class VIPOrderUtil {
|
|
/**
|
* 获取第三方订单号
|
*
|
* @param orderType
|
* @param id
|
* @return
|
*/
|
public static String getOutOrderNo(OrderType orderType, String id) {
|
if (orderType == OrderType.vip)
|
return "buwan_vip_" + id;
|
else
|
return "buwan_video_" + id;
|
}
|
|
|
public static String getIdFromOutOrderNo(String orderNo) {
|
return orderNo.replace("buwan_vip_", "").replace("buwan_video_", "");
|
}
|
|
}
|