移除 不用的控制器

This commit is contained in:
iVampireSP.com 2022-10-29 11:45:27 +08:00
parent 92e740294b
commit db0200760a
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -32,9 +32,7 @@ public function handle()
// end of this month
$endOfMonth = now()->endOfMonth();
$moduleController = new ModuleController();
Module::chunk(100, function ($modules) use ($moduleController, $beginOfMonth, $endOfMonth) {
Module::chunk(100, function ($modules) use ($beginOfMonth, $endOfMonth) {
foreach ($modules as $module) {
$this_month = Transaction::where('module_id', $module->id)->where('type', 'payout')->whereBetween('created_at', [$beginOfMonth, $endOfMonth]);