测试限制
This commit is contained in:
@@ -246,6 +246,8 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
|||||||
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "请前往实名认证");
|
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "请前往实名认证");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var price = packageEntity.Price;
|
var price = packageEntity.Price;
|
||||||
var userPrice = await this.m_ProductUserPriceService.Query(true).FirstOrDefaultAsync(m => m.UserId == userId && m.PackageId == packageEntity.Id && m.Status == 1);
|
var userPrice = await this.m_ProductUserPriceService.Query(true).FirstOrDefaultAsync(m => m.UserId == userId && m.PackageId == packageEntity.Id && m.Status == 1);
|
||||||
if (userPrice != null && userPrice.UserPrice > 0)
|
if (userPrice != null && userPrice.UserPrice > 0)
|
||||||
@@ -309,6 +311,12 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
|||||||
order.OrderAmount = price * request.ConnectCount * count;
|
order.OrderAmount = price * request.ConnectCount * count;
|
||||||
order.Accounts = request.Account;
|
order.Accounts = request.Account;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (packageEntity.Name =="测试卡" && (order.AccountCount !=1 || order.ConnectCount != 1)){
|
||||||
|
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "如果再非法操作,juip官网将对您进行制裁,冻结您的账号");
|
||||||
|
}
|
||||||
|
|
||||||
//双月卡活动
|
//双月卡活动
|
||||||
// foreach (var account in order.Accounts.Split(",").ToList())
|
// foreach (var account in order.Accounts.Split(",").ToList())
|
||||||
// {
|
// {
|
||||||
|
|||||||
Reference in New Issue
Block a user