管理员领取用户

This commit is contained in:
“wanyongkang”
2023-08-11 15:11:13 +08:00
parent 4e27ed41ec
commit 9400508941
6 changed files with 18 additions and 14 deletions

View File

@@ -320,11 +320,11 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
price = 1.00M;
}
if (packageEntity.ProductId != 23 &&packageEntity.ProductId != 22 && ProductAccountCount == 0 && request.OrderType != OrderType.News && (packageEntity.DayCount == 1||packageEntity.DayCount == 2) && request.ConnectCount == 1 && request.OrderType!=OrderType.AgainBuy&& request.OrderType!=OrderType.AgainBuys){
// price = 0.1M;
userEntity.ProductAccountCount = 1;
await m_UserService.Update(userEntity);
}
// if (packageEntity.ProductId != 23 &&packageEntity.ProductId != 22 && ProductAccountCount == 0 && request.OrderType != OrderType.News && (packageEntity.DayCount == 1||packageEntity.DayCount == 2) && 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()
{
AccountCount = 1,
@@ -622,6 +622,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
accounts = accounts.Distinct().ToList();
var userEntity = await m_UserService.GetById(order.UserId);
var user_remark = "";
if(order.ProductId == 8||order.ProductId == 7) {
@@ -637,6 +638,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
var end_time = DateTime.Now.AddDays(order.DayCount);
if (order.PackageName == "测试卡" || order.PackageName == "测试卡(高级)" || order.PackageName == "测试卡(普通)") {
end_time = DateTime.Now.AddHours(order.DayCount);
userEntity.ProductAccountCount = 1;
}
@@ -838,6 +840,8 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
}
userEntity.pay_time = DateTime.Now.ToString();
await m_UserService.Update(userEntity);
}
/// <summary>