测试限制

This commit is contained in:
“wanyongkang”
2021-03-01 15:01:01 +08:00
parent 0f3ff0e390
commit cc45a430a5

View File

@@ -246,6 +246,8 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "请前往实名认证");
}
var price = packageEntity.Price;
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)
@@ -309,6 +311,12 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
order.OrderAmount = price * request.ConnectCount * count;
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())
// {