update change port

This commit is contained in:
pbao9
2026-01-17 11:27:54 +07:00
parent a79f0041f4
commit 4f2fdbaaa5
14 changed files with 70 additions and 147 deletions
@@ -3,7 +3,7 @@
$isWindows = Str::contains(Str::lower($vmInfo['os'] ?? ''), 'windows') ||
Str::contains(Str::lower($invoice->invoiceItem->first()->os->osGroup->name ?? ''), 'windows');
$vmIp = $vmInfo['ip_address'] ?? '103.42.56.177';
$vmPort = $isWindows ? '3389' : '22';
$vmPort = $invoice->order->vmWare->first()->port ?? '3389';
$vmUser = $isWindows ? 'administrator' : 'root';
$osName = $invoice->invoiceItem->first()->os->osGroup->name ?? 'Unknown';
$osVersion = $invoice->invoiceItem->first()->os->version ?? '';