refactor(idiom): 将游戏配置和题库移到 IdiomSeeder,迁移只建表

This commit is contained in:
pllx
2026-04-29 00:10:01 +08:00
parent f13cfe4bc1
commit 9bc085cb7d
3 changed files with 162 additions and 30 deletions
+17 -8
View File
@@ -170,17 +170,26 @@ class GameConfigSeeder extends Seeder
],
],
// ─── 猜成语 ───────────────────────────────────────────────
// ─── 五子棋 ───────────────────────────────────────────────
[
'game_key' => 'idiom',
'name' => '猜成语',
'icon' => '🧩',
'description' => '管理员手动出题或系统定时自动出题,用户抢答成语,第一个答对的获得金币和经验奖励。',
'game_key' => 'gomoku',
'name' => '五子棋',
'icon' => '♟️',
'description' => 'PvP 对战/人机对战,房间内随时发起邀请,超时或认输均自动结算。',
'enabled' => false,
'params' => [
'reward_gold' => 50, // 答对奖励金币
'reward_exp' => 30, // 答对奖励经验
'auto_start_interval' => 0, // 自动出题间隔(分钟,0=手动
'pvp_reward' => 200, // PvP 胜利奖励金币
'pvp_invite_timeout' => 30, // PvP 邀请超时(秒)
'pvp_move_timeout' => 45, // 每步落子超时(秒
'pvp_ready_timeout' => 20, // 对局准备超时(秒)
'pve_fee_level_1' => 50, // AI简单 入场费
'pve_reward_level_1' => 100, // AI简单 胜利奖励
'pve_fee_level_2' => 100, // AI普通 入场费
'pve_reward_level_2' => 200, // AI普通 胜利奖励
'pve_fee_level_3' => 200, // AI困难 入场费
'pve_reward_level_3' => 400, // AI困难 胜利奖励
'pve_fee_level_4' => 500, // AI专家 入场费
'pve_reward_level_4' => 1000, // AI专家 胜利奖励
],
],
];