diff --git a/app/Console/Commands/UpdateGroupWithTransferFee.php b/app/Console/Commands/UpdateGroupWithTransferFee.php index a30e8982..be71d129 100644 --- a/app/Console/Commands/UpdateGroupWithTransferFee.php +++ b/app/Console/Commands/UpdateGroupWithTransferFee.php @@ -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'); } }