双月卡活动去掉活动卡不能续费

This commit is contained in:
wanyongkang
2020-12-01 19:35:28 +08:00
parent 688577db39
commit 318c9a24a7
2 changed files with 25 additions and 20 deletions

View File

@@ -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);