feat: multi diagrams

This commit is contained in:
2026-04-06 16:35:11 +08:00
parent 42a879e961
commit d19b770ef4
8 changed files with 98 additions and 16 deletions

View File

@@ -53,7 +53,10 @@ PROMPT;
'code' => "SCREEN-{$beamline}",
'ip_address' => $ipAddress,
'station_id' => $station->id,
'diagram_url' => 'https://ssrf.9z.work/scada/demo.html',
'diagram_urls' => [
['title' => 'BL16U1', 'url' => 'https://ssrf.9z.work/scada/BL16U1.svg'],
['title' => 'BL16U1前端布局图', 'url' => 'https://ssrf.9z.work/scada/BL16U1-1.svg']
],
'is_online' => in_array($beamline, ['BL02U1', 'BL07U', 'BL08U', 'BL13U', 'BL15U']),
'last_online_at' => in_array($beamline, ['BL02U1', 'BL07U', 'BL08U', 'BL13U', 'BL15U'])
? now()