双月卡活动去掉活动卡不能续费
This commit is contained in:
@@ -250,10 +250,12 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
||||
{
|
||||
order.OrderAmount = price * request.ConnectCount;
|
||||
order.Accounts = request.Account;
|
||||
var isExit = await m_ProductAccountService.CheckMonthAccountExist(request.Account);
|
||||
if(isExit){
|
||||
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, request.Account + "此IP账号已享受该优惠套餐,无法再次购买,若要购买此优惠套餐,请新开或续费其他账号。");
|
||||
}
|
||||
|
||||
//双月卡活动
|
||||
// var isExit = await m_ProductAccountService.CheckMonthAccountExist(request.Account);
|
||||
// if(isExit){
|
||||
// return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, request.Account + "此IP账号已享受该优惠套餐,无法再次购买,若要购买此优惠套餐,请新开或续费其他账号。");
|
||||
// }
|
||||
}
|
||||
|
||||
if (request.OrderType == OrderType.News)
|
||||
@@ -271,13 +273,14 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
||||
order.OrderAmount = price * request.ConnectCount * count;
|
||||
order.Accounts = request.Account;
|
||||
}
|
||||
foreach (var account in order.Accounts.Split(",").ToList())
|
||||
{
|
||||
var isExit = await m_ProductAccountService.CheckMonthAccountExist(account);
|
||||
if(isExit){
|
||||
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, account + "此IP账号已享受该优惠套餐,无法再次购买,若要购买此优惠套餐,请新开或续费其他账号。");
|
||||
}
|
||||
}
|
||||
//双月卡活动
|
||||
// foreach (var account in order.Accounts.Split(",").ToList())
|
||||
// {
|
||||
// var isExit = await m_ProductAccountService.CheckMonthAccountExist(account);
|
||||
// if(isExit){
|
||||
// return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, account + "此IP账号已享受该优惠套餐,无法再次购买,若要购买此优惠套餐,请新开或续费其他账号。");
|
||||
// }
|
||||
// }
|
||||
|
||||
await CheckRequest(order);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user