feat: 完成激活码功能
This commit is contained in:
@@ -13,6 +13,8 @@ public class ActivationCodeGoodsAttribute : Attribute
|
||||
public long TokenAmount { get; }
|
||||
public int VipMonths { get; }
|
||||
public bool IsCombo { get; }
|
||||
public bool IsReusable { get; }
|
||||
public bool IsSameTypeOnce { get; }
|
||||
public string DisplayName { get; }
|
||||
public string Content { get; }
|
||||
|
||||
@@ -21,6 +23,8 @@ public class ActivationCodeGoodsAttribute : Attribute
|
||||
long tokenAmount,
|
||||
int vipMonths,
|
||||
bool isCombo,
|
||||
bool isReusable,
|
||||
bool isSameTypeOnce,
|
||||
string displayName,
|
||||
string content)
|
||||
{
|
||||
@@ -28,6 +32,8 @@ public class ActivationCodeGoodsAttribute : Attribute
|
||||
TokenAmount = tokenAmount;
|
||||
VipMonths = vipMonths;
|
||||
IsCombo = isCombo;
|
||||
IsReusable = isReusable;
|
||||
IsSameTypeOnce = isSameTypeOnce;
|
||||
DisplayName = displayName;
|
||||
Content = content;
|
||||
}
|
||||
@@ -41,37 +47,43 @@ public enum ActivationCodeGoodsTypeEnum
|
||||
/// <summary>
|
||||
/// 48.90【意心Ai会员1月+2000w 尊享Token】新人首单组合包(推荐)
|
||||
/// </summary>
|
||||
[ActivationCodeGoods(48.90, 20000000, 1, true, "意心Ai会员1月+2000w 尊享Token", "新人首单组合包(推荐)")]
|
||||
[ActivationCodeGoods(price: 48.90, tokenAmount: 20000000, vipMonths: 1, isCombo: true, isReusable: false,
|
||||
isSameTypeOnce: true, displayName: "意心Ai会员1月+2000w 尊享Token", content: "新人首单组合包(推荐)")]
|
||||
Vip1MonthPlus2000W = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 1.00【10w 尊享Token】测试体验包
|
||||
/// </summary>
|
||||
[ActivationCodeGoods(1.00, 100000, 0, false, "10w 尊享Token", "测试体验包")]
|
||||
[ActivationCodeGoods(price: 1.00, tokenAmount: 100000, vipMonths: 0, isCombo: false, isReusable: false,
|
||||
isSameTypeOnce: false, displayName: "10w 尊享Token", content: "测试体验包")]
|
||||
Premium10W = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 9.90【1000w 尊享Token】意心会员首单回馈包
|
||||
/// </summary>
|
||||
[ActivationCodeGoods(9.90, 10000000, 0, false, "1000w 尊享Token", "意心会员首单回馈包")]
|
||||
[ActivationCodeGoods(price: 9.90, tokenAmount: 10000000, vipMonths: 0, isCombo: false, isReusable: false,
|
||||
isSameTypeOnce: true, displayName: "1000w 尊享Token", content: "意心会员首单回馈包")]
|
||||
Premium1000W = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 22.90【意心Ai会员1月】特价包
|
||||
/// </summary>
|
||||
[ActivationCodeGoods(22.90, 0, 1, false, "意心Ai会员1月", "特价包")]
|
||||
[ActivationCodeGoods(price: 22.90, tokenAmount: 0, vipMonths: 1, isCombo: false, isReusable: false,
|
||||
isSameTypeOnce: false, displayName: "意心Ai会员1月", content: "特价包")]
|
||||
Vip1Month = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 138.90【5000w 尊享Token】特价包
|
||||
/// </summary>
|
||||
[ActivationCodeGoods(138.90, 50000000, 0, false, "5000w 尊享Token", "特价包")]
|
||||
[ActivationCodeGoods(price: 138.90, tokenAmount: 50000000, vipMonths: 0, isCombo: false, isReusable: false,
|
||||
isSameTypeOnce: false, displayName: "5000w 尊享Token", content: "特价包")]
|
||||
Premium5000W = 5,
|
||||
|
||||
/// <summary>
|
||||
/// 198.90【1亿 尊享Token】特价包
|
||||
/// </summary>
|
||||
[ActivationCodeGoods(198.90, 100000000, 0, false, "1亿 尊享Token", "特价包")]
|
||||
[ActivationCodeGoods(price: 198.90, tokenAmount: 100000000, vipMonths: 0, isCombo: false, isReusable: false,
|
||||
isSameTypeOnce: false, displayName: "1亿 尊享Token", content: "特价包")]
|
||||
Premium1Yi = 6
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user