|
@@ -8451,5 +8451,20 @@ private void runMigration100() {
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.warn("同步membership_levels价格失败: {}", e.getMessage());
|
|
log.warn("同步membership_levels价格失败: {}", e.getMessage());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 迁移204: 插入 LIFETIME 终身会员等级行(不可购买,仅管理员授予,价格全 0)
|
|
|
|
|
+ try {
|
|
|
|
|
+ jdbcTemplate.execute("INSERT IGNORE INTO membership_levels " +
|
|
|
|
|
+ "(level_code, level_name, level_desc, price_monthly, price_quarterly, price_yearly, " +
|
|
|
|
|
+ "original_price_monthly, original_price_quarterly, original_price_yearly, " +
|
|
|
|
|
+ "features, max_children, max_tasks_per_day, ai_review_enabled, priority_support, teacher_consultation) VALUES " +
|
|
|
|
|
+ "('LIFETIME', '终身会员', '终身家庭会员权益,永久有效无需续费', 0, 0, 0, 0, 0, 0, " +
|
|
|
|
|
+ "'[\"free_activities\",\"free_courses\",\"full_price_purchase\",\"referral_commission\"," +
|
|
|
|
|
+ "\"discount_purchase\",\"member_activities\",\"create_family\",\"invite_family\",\"purchase_commission\"]', " +
|
|
|
|
|
+ "6, 20, 1, 1, 1)");
|
|
|
|
|
+ log.info("已插入LIFETIME等级种子数据");
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ log.warn("插入LIFETIME等级种子数据失败: {}", e.getMessage());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|