feat: Implement UUID-based customer routing, enhance order request validation, and refactor VM creation job with updated payment logic and ModuleVmware handling.

This commit is contained in:
pbao9
2026-03-12 16:30:02 +07:00
parent 508d5186db
commit dbd3cdafcd
11 changed files with 207 additions and 283 deletions
-8
View File
@@ -647,7 +647,6 @@ PS;
public function CreateVirtualMachine($product_data): array|string
{
$vcenterModel = $product_data['vcenter'];
Log::info('Vcenter Info', ['data' => $vcenterModel]);
if (!$this->loginServer($vcenterModel)) {
Log::error('Failed to create VM: API check failed, requires login.');
@@ -673,13 +672,6 @@ PS;
$base_ram = max(1, (int) $base_ram);
$base_disk = max(20, (int) $base_disk);
Log::info("Cấu hình cơ bản", [
'base_cpu' => $base_cpu,
'base_ram' => $base_ram,
'base_disk' => $base_disk,
'addon' => $addon
]);
// Lấy tất cả datastore liên quan host, không lấy first()
$datastores = \App\Models\ModuleDatastore::where('module_host_id', $host->id)->get();