feat: Implement vCenter management APIs, console ticket retrieval, password encryption, and background synchronization.

This commit is contained in:
pbao9
2026-03-06 17:29:52 +07:00
parent cb8510cf56
commit 23a496f511
10 changed files with 332 additions and 52 deletions
@@ -91,14 +91,10 @@ class SyncDatacenter implements ShouldQueue
continue; // skip malformed items
}
$exists = ModuleDatacenter::where('datacenter_id', $_item['datacenter'])->first();
if (!$exists) {
ModuleDatacenter::create([
'name' => $_item['name'],
'datacenter_id' => $_item['datacenter'],
'vcenter_id' => $item->id
]);
}
ModuleDatacenter::updateOrCreate(
['datacenter_id' => $_item['datacenter']],
['name' => $_item['name'], 'vcenter_id' => $item->id]
);
}
}
// Notify success via Telegram