feat: 调整翻牌与邀请码逻辑,增加第8次奖励及前端骨架屏

This commit is contained in:
chenchun
2025-10-29 21:55:17 +08:00
parent dd3f6325bb
commit e6b991fe86
5 changed files with 202 additions and 66 deletions

View File

@@ -65,13 +65,23 @@ public class CardFlipTaskAggregateRoot : FullAuditedAggregateRoot<Guid>
/// </summary>
public bool IsFirstFlipDone { get; set; }
/// <summary>
/// 是否已获得第8次奖励
/// </summary>
public bool HasEighthReward { get; set; }
/// <summary>
/// 第8次奖励金额100-300w
/// </summary>
public long? EighthRewardAmount { get; set; }
/// <summary>
/// 是否已获得第9次奖励
/// </summary>
public bool HasNinthReward { get; set; }
/// <summary>
/// 第9次奖励金额300-700w
/// 第9次奖励金额100-500w
/// </summary>
public long? NinthRewardAmount { get; set; }
@@ -81,7 +91,7 @@ public class CardFlipTaskAggregateRoot : FullAuditedAggregateRoot<Guid>
public bool HasTenthReward { get; set; }
/// <summary>
/// 第10次奖励金额800-1200w
/// 第10次奖励金额100-1000w
/// </summary>
public long? TenthRewardAmount { get; set; }
@@ -124,6 +134,16 @@ public class CardFlipTaskAggregateRoot : FullAuditedAggregateRoot<Guid>
}
}
/// <summary>
/// 记录第8次奖励
/// </summary>
/// <param name="amount">奖励金额</param>
public void SetEighthReward(long amount)
{
HasEighthReward = true;
EighthRewardAmount = amount;
}
/// <summary>
/// 记录第9次奖励
/// </summary>