一毛钱活动

This commit is contained in:
“wanyongkang”
2021-01-18 18:42:20 +08:00
parent c0b77c96df
commit 4c6d717ba1

View File

@@ -223,6 +223,9 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
var ProductAccountCount = userEntity.ProductAccountCount;
var is_verify = userEntity.is_verify;
if (is_verify == 0)
{
@@ -234,8 +237,10 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
if (userPrice != null && userPrice.UserPrice > 0)
price = userPrice.UserPrice;
if (ProductAccountCount == 0 && packageEntity.DayCount == 1 && packageEntity.ProductId!=5 && request.ConnectCount == 1){
if (ProductAccountCount == 0 && packageEntity.DayCount == 1 && packageEntity.ProductId!=5 && request.ConnectCount == 1 && request.OrderType!=OrderType.AgainBuy&& request.OrderType!=OrderType.AgainBuys){
price = 0.1M;
userEntity.ProductAccountCount = 1;
await m_UserService.Update(userEntity);
}
var order = new ProductOrderEntity()
{
@@ -304,10 +309,6 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
if (ret.Code != ResultCode.C_SUCCESS) return ret;
if (order.AccountPayAmount == 0.1M){
userEntity.ProductAccountCount = 1;
await m_UserService.Update(userEntity);
}
using (var tran = await m_DbContext.Database.BeginTransactionAsync())
{
try