diff --git a/app/Services/Machine/MachineService.php b/app/Services/Machine/MachineService.php index 73b0028..cc7e1dd 100644 --- a/app/Services/Machine/MachineService.php +++ b/app/Services/Machine/MachineService.php @@ -423,7 +423,7 @@ class MachineService // 超過 1 分鐘:視為逾時,自動標記舊指令 $pendingCommand->update([ 'status' => 'timeout', - 'note' => '指令逾時 (1 分鐘未回報),已被新指令覆蓋。', + 'note' => __('Superseded by new command (Timeout)'), ]); } diff --git a/database/migrations/2026_05_12_084832_add_timeout_to_remote_commands_status_enum.php b/database/migrations/2026_05_12_084832_add_timeout_to_remote_commands_status_enum.php new file mode 100644 index 0000000..0720021 --- /dev/null +++ b/database/migrations/2026_05_12_084832_add_timeout_to_remote_commands_status_enum.php @@ -0,0 +1,29 @@ + ['label' => __('Verified'), 'color' => 'emerald'], 'consume' => ['label' => __('Consumed'), 'color' => 'cyan'], 'completed' => ['label' => __('Completed'), 'color' => 'cyan'], + 'sent' => ['label' => __('Sent'), 'color' => 'indigo'], + 'success' => ['label' => __('Success'), 'color' => 'emerald'], + 'failed' => ['label' => __('Failed'), 'color' => 'rose'], + 'timeout' => ['label' => __('Timeout'), 'color' => 'rose'], + 'superseded' => ['label' => __('Superseded'),'color' => 'slate'], ]; $preset = $presets[$status] ?? ['label' => $status, 'color' => 'slate'];