Skip to content

Commit

Permalink
Merge pull request #139 from xiaoyaohanyue/patch-1
Browse files Browse the repository at this point in the history
修复每日任务‘to_email’报错
  • Loading branch information
BobCoderS9 authored Sep 8, 2023
2 parents ae7b246 + cdac008 commit 7156159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function DailyJob()
}
}

$users = User::select(['id', 'u', 'd', 'last_day_t', 'auto_reset_day', 'transfer_enable', 'auto_reset_bandwidth'])->get();
$users = User::select(['id', 'u', 'd', 'last_day_t', 'auto_reset_day', 'transfer_enable', 'auto_reset_bandwidth'], 'email')->get();
foreach ($users as $user) {
$user->last_day_t = ($user->u + $user->d);
$user->save();
Expand Down

0 comments on commit 7156159

Please sign in to comment.