refactor: remove syncing
This commit is contained in:
@@ -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,
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定终端为生产线终端
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user