feat: 更新数据库填充器以支持开发环境的管理员和玩家数据填充,新增示例钱包余额配置
This commit is contained in:
@@ -11,6 +11,18 @@ class DatabaseSeeder extends Seeder
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
// 后台账号:后续可加 AdminUserSeeder;玩家:players 由 SSO 映射写入
|
||||
// 全环境可用的基础枚举数据
|
||||
$this->call([
|
||||
CurrencySeeder::class,
|
||||
PlayTypeSeeder::class,
|
||||
]);
|
||||
|
||||
// 演示管理员 + 演示玩家:**勿在生产库执行**(或确保 APP_ENV≠production)
|
||||
if (! app()->environment('production')) {
|
||||
$this->call([
|
||||
AdminRbacAndUserSeeder::class,
|
||||
DevPlayerAndWalletSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user