1
This commit is contained in:
@@ -1508,59 +1508,59 @@ impl RuntimeProfileRechargeOrderStatus {
|
||||
|
||||
pub fn runtime_profile_recharge_point_products() -> Vec<RuntimeProfileRechargeProductSnapshot> {
|
||||
vec![
|
||||
build_points_recharge_product(
|
||||
"points_10",
|
||||
"10积分",
|
||||
100,
|
||||
10,
|
||||
19,
|
||||
"首充送积分",
|
||||
"首充送19积分",
|
||||
),
|
||||
build_points_recharge_product(
|
||||
"points_60",
|
||||
"60积分",
|
||||
"60叙世币",
|
||||
600,
|
||||
60,
|
||||
0,
|
||||
"无首充赠礼",
|
||||
"无首充赠送",
|
||||
60,
|
||||
"首充双倍",
|
||||
"首充送60叙世币",
|
||||
),
|
||||
build_points_recharge_product(
|
||||
"points_240",
|
||||
"240积分",
|
||||
2400,
|
||||
240,
|
||||
240,
|
||||
"points_180",
|
||||
"180叙世币",
|
||||
1800,
|
||||
180,
|
||||
180,
|
||||
"首充双倍",
|
||||
"首充送240积分",
|
||||
"首充送180叙世币",
|
||||
),
|
||||
build_points_recharge_product(
|
||||
"points_450",
|
||||
"450积分",
|
||||
4500,
|
||||
450,
|
||||
450,
|
||||
"points_300",
|
||||
"300叙世币",
|
||||
3000,
|
||||
300,
|
||||
300,
|
||||
"首充双倍",
|
||||
"首充送450积分",
|
||||
"首充送300叙世币",
|
||||
),
|
||||
build_points_recharge_product(
|
||||
"points_950",
|
||||
"950积分",
|
||||
9500,
|
||||
950,
|
||||
950,
|
||||
"points_680",
|
||||
"680叙世币",
|
||||
6800,
|
||||
680,
|
||||
680,
|
||||
"首充双倍",
|
||||
"首充送950积分",
|
||||
"首充送680叙世币",
|
||||
),
|
||||
build_points_recharge_product(
|
||||
"points_1980",
|
||||
"1980积分",
|
||||
19800,
|
||||
1980,
|
||||
1980,
|
||||
"points_1280",
|
||||
"1280叙世币",
|
||||
12800,
|
||||
1280,
|
||||
1280,
|
||||
"首充双倍",
|
||||
"首充送1980积分",
|
||||
"首充送1280叙世币",
|
||||
),
|
||||
build_points_recharge_product(
|
||||
"points_3280",
|
||||
"3280叙世币",
|
||||
32800,
|
||||
3280,
|
||||
3280,
|
||||
"首充双倍",
|
||||
"首充送3280叙世币",
|
||||
),
|
||||
]
|
||||
}
|
||||
@@ -1609,7 +1609,7 @@ pub fn runtime_profile_membership_benefits() -> Vec<RuntimeProfileMembershipBene
|
||||
year_value: "¥248".to_string(),
|
||||
},
|
||||
RuntimeProfileMembershipBenefitSnapshot {
|
||||
benefit_name: "免积分回合数".to_string(),
|
||||
benefit_name: "免叙世币回合数".to_string(),
|
||||
normal_value: "30".to_string(),
|
||||
month_value: "100".to_string(),
|
||||
season_value: "100".to_string(),
|
||||
@@ -1970,10 +1970,12 @@ mod tests {
|
||||
let membership_products = runtime_profile_recharge_membership_products();
|
||||
|
||||
assert_eq!(point_products.len(), 6);
|
||||
assert_eq!(point_products[0].product_id, "points_10");
|
||||
assert_eq!(point_products[0].price_cents, 100);
|
||||
assert_eq!(point_products[0].bonus_points, 19);
|
||||
assert_eq!(point_products[5].points_amount, 1980);
|
||||
assert_eq!(point_products[0].product_id, "points_60");
|
||||
assert_eq!(point_products[0].price_cents, 600);
|
||||
assert_eq!(point_products[0].bonus_points, 60);
|
||||
assert_eq!(point_products[5].product_id, "points_3280");
|
||||
assert_eq!(point_products[5].price_cents, 32800);
|
||||
assert_eq!(point_products[5].bonus_points, 3280);
|
||||
assert_eq!(membership_products.len(), 3);
|
||||
assert_eq!(membership_products[0].title, "月卡");
|
||||
assert_eq!(membership_products[0].price_cents, 2800);
|
||||
|
||||
Reference in New Issue
Block a user