refactor: remove syncing

This commit is contained in:
2026-03-16 13:56:10 +08:00
parent 58f42de9df
commit 8d30a0419d
18 changed files with 25 additions and 954 deletions

View File

@@ -30,12 +30,6 @@ class TerminalFactory extends Factory
'ip_address' => fake()->localIpv4(),
'station_id' => null, // 需要关联实际的线站ID
'diagram_url' => fake()->imageUrl(1920, 1080, 'diagram', true),
'display_config' => [
'resolution' => fake()->randomElement(['1920x1080', '2560x1440', '3840x2160']),
'refresh_rate' => fake()->randomElement([30, 60, 120]),
'orientation' => fake()->randomElement(['landscape', 'portrait']),
'brightness' => fake()->numberBetween(50, 100),
],
'is_online' => fake()->boolean(70), // 70%概率在线
'last_online_at' => fake()->dateTimeBetween('-7 days', 'now'),
];
@@ -63,21 +57,6 @@ class TerminalFactory extends Factory
]);
}
/**
* 指定终端为高分辨率配置
*/
public function highResolution(): static
{
return $this->state(fn (array $attributes) => [
'display_config' => [
'resolution' => '3840x2160',
'refresh_rate' => 60,
'orientation' => 'landscape',
'brightness' => 80,
],
]);
}
/**
* 指定终端为生产线终端
*/