极光1毛钱天卡

This commit is contained in:
“wanyongkang”
2024-11-08 17:40:42 +08:00
parent b357af3e71
commit 3c560e819b
4 changed files with 24 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ namespace Hncore.Pass.BaseInfo.Models
public string apikey { get; set; }
public int TenantId { get; set; }
public int agent_id { get; set; }
public int jgday { get; set; }
/// <summary>
/// 管理员登录名[16

View File

@@ -38,6 +38,9 @@ namespace Hncore.Pass.Vpn.Domain
/// </summary>
public string Profile { get; set; }
public int jgday { get; set; }
/// <summary>
/// 状态

View File

@@ -276,6 +276,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
//天卡0.1元
var ExpiredProductAccountCount = userEntity.ExpiredProductAccountCount;
var mogu_jihu = userEntity.Sex;
var jgday = userEntity.jgday;
var is_verify = userEntity.is_verify;
@@ -346,6 +347,12 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
userEntity.Sex = 1;
await m_UserService.Update(userEntity);
}
if (( request.PackageId == 1215 || request.PackageId == 1221 || request.PackageId == 1227)&&jgday == 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.jgday = 1;
await m_UserService.Update(userEntity);
}
var order = new ProductOrderEntity()
{
AccountCount = 1,