Merge branch 'master' into hermes/hermes-4fd30995

This commit is contained in:
2026-05-15 05:58:16 +08:00
540 changed files with 115094 additions and 59 deletions

View File

@@ -2915,16 +2915,18 @@ fn build_profile_recharge_center_snapshot(
.map(|row| row.wallet_balance)
.unwrap_or(0);
let has_points_recharged = has_profile_points_recharged(ctx, user_id);
RuntimeProfileRechargeCenterSnapshot {
user_id: user_id.to_string(),
wallet_balance,
membership: build_profile_membership_snapshot(ctx, user_id),
point_products: runtime_profile_recharge_point_products(),
point_products: resolve_runtime_profile_recharge_point_products(has_points_recharged),
membership_products: runtime_profile_recharge_membership_products(),
benefits: runtime_profile_membership_benefits(),
latest_order: latest_profile_recharge_order(ctx, user_id)
.map(|row| build_profile_recharge_order_snapshot_from_row(&row)),
has_points_recharged: has_profile_points_recharged(ctx, user_id),
has_points_recharged,
}
}