update logging

This commit is contained in:
edmondlang
2023-12-20 17:57:03 +08:00
parent bf278e438e
commit 89eaa78ee9
@@ -49,7 +49,7 @@ class UpdateGroupWithTransferFee extends Command
ini_set('max_execution_time', 0);
set_time_limit(0);
$groups = Group::whereDate('updated_at', '<', Carbon::now())->get();
Log::info($groups->count());
$this->info($groups->count());
// $groups = Group::where('id', 999)->get();
@@ -65,10 +65,11 @@ class UpdateGroupWithTransferFee extends Command
// $group->original_amount = $correctOriginalAmount;
// $group->amount = $correctAmount;
// $group->save();
Log::info("Update group id: " . $group->id . " correct original amount is: " . $correctOriginalAmount . " transfer fee is " . $originalTransferFees);
$this->info("Update group id: " . $group->id . " correct original amount is: " . $correctOriginalAmount . " transfer fee is " . $originalTransferFees);
} else {
Log::info("No update for group id: " . $group->id);
$this->info("No update for group id: " . $group->id);
}
}
$this->info(Carbon::now() . ' : ' . 'updateGroupWithTransferFee ------ completed');
}
}