update
This commit is contained in:
@@ -117,14 +117,6 @@ class ProcessOrderPaymentJob implements ShouldQueue
|
||||
$successfulVMs = array_filter($vmCreationResults, fn($vm) => $vm['success']);
|
||||
$failedVMs = array_filter($vmCreationResults, fn($vm) => !$vm['success']);
|
||||
|
||||
Log::info("Kết quả tạo VM cho đơn hàng #{$this->order->order_num}", [
|
||||
'order_id' => $this->order->id,
|
||||
'total_vms' => count($vmCreationResults),
|
||||
'successful_vms' => count($successfulVMs),
|
||||
'failed_vms' => count($failedVMs),
|
||||
'vm_results' => $vmCreationResults
|
||||
]);
|
||||
|
||||
// Nếu tất cả VM được tạo thành công, tiến hành thanh toán
|
||||
if ($allVMsCreated && count($successfulVMs) > 0) {
|
||||
DB::beginTransaction();
|
||||
@@ -142,13 +134,6 @@ class ProcessOrderPaymentJob implements ShouldQueue
|
||||
|
||||
DB::commit();
|
||||
|
||||
Log::info("Thanh toán thành công cho đơn hàng #{$this->order->order_num}", [
|
||||
'order_id' => $this->order->id,
|
||||
'vm_results' => $vmCreationResults,
|
||||
'total_vms' => count($vmCreationResults),
|
||||
'successful_vms' => count($successfulVMs)
|
||||
]);
|
||||
|
||||
// Gửi thông báo thành công cho khách hàng
|
||||
$this->sendSuccessNotification($vmCreationResults);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user