一毛钱活动

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

View File

@@ -224,6 +224,9 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
var is_verify = userEntity.is_verify; var is_verify = userEntity.is_verify;
if (is_verify == 0) if (is_verify == 0)
{ {
return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "请前往实名认证"); return new ApiResult<ProductOrderEntity>(ResultCode.C_INVALID_ERROR, "请前往实名认证");
@@ -234,8 +237,10 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
if (userPrice != null && userPrice.UserPrice > 0) if (userPrice != null && userPrice.UserPrice > 0)
price = userPrice.UserPrice; 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; price = 0.1M;
userEntity.ProductAccountCount = 1;
await m_UserService.Update(userEntity);
} }
var order = new ProductOrderEntity() 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 (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()) using (var tran = await m_DbContext.Database.BeginTransactionAsync())
{ {
try try