|
|
@@ -7528,5 +7528,14 @@ private void runMigration100() {
|
|
|
} catch (Exception e) {
|
|
|
log.warn("创建growth_archive_products表失败: {}", e.getMessage());
|
|
|
}
|
|
|
+
|
|
|
+ // 迁移154: membership_levels 表插入 PREMIUM 等级种子数据(前端升级页可选"高级家庭会员",createOrder 查表为 null 抛"会员等级不存在")
|
|
|
+ try {
|
|
|
+ jdbcTemplate.execute("INSERT IGNORE INTO membership_levels (level_code, level_name, level_desc, price_monthly, price_quarterly, price_yearly, max_children, max_tasks_per_day, ai_review_enabled, priority_support, teacher_consultation) VALUES " +
|
|
|
+ "('PREMIUM', '高级家庭会员', '高级家庭会员专属功能', 131400, NULL, 1316800, 10, 50, 1, 1, 1)");
|
|
|
+ log.info("已插入PREMIUM等级种子数据");
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.warn("插入PREMIUM等级种子数据失败: {}", e.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
}
|