refactor: 修复知识库和操作指引

This commit is contained in:
2026-03-13 14:32:37 +08:00
parent bbe8e60646
commit 58f42de9df
88 changed files with 3387 additions and 2472 deletions

View File

@@ -48,7 +48,7 @@ class TerminalSyncTest extends TestCase
// 断言任务已加入队列
Queue::assertPushed(SyncTerminalConfigJob::class, function ($job) use ($terminal, $log) {
return $job->terminal->id === $terminal->id
return $job->terminal->id === $terminal->id
&& $job->log->id === $log->id;
});
}
@@ -64,7 +64,7 @@ class TerminalSyncTest extends TestCase
'code' => 'TEST-002',
'ip_address' => '192.168.1.100',
'station_id' => 1,
'diagram_url' => 'https://example.com/diagram.png',
'diagram_url' => 'https://example.com/diagram.html',
'display_config' => ['resolution' => '1920x1080'],
]);
@@ -117,7 +117,7 @@ class TerminalSyncTest extends TestCase
// 断言创建了3个同步日志
$this->assertCount(3, $logs);
// 断言每个终端都有同步日志
foreach ($terminals as $terminal) {
$this->assertDatabaseHas('terminal_sync_logs', [