diff --git a/app/Console/Commands/Distribution/PreIncomeCommand.php b/app/Console/Commands/Distribution/PreIncomeCommand.php deleted file mode 100644 index 0911b4a0..00000000 --- a/app/Console/Commands/Distribution/PreIncomeCommand.php +++ /dev/null @@ -1,59 +0,0 @@ -pending()->chunkById(200, function ($jobs) use ($jobService) { - foreach ($jobs as $job) { - try { - DB::beginTransaction(); - - $jobService->run($job); - - DB::commit(); - } catch (Throwable $e) { - DB::rollBack(); - - report($e); - - if ($e instanceof BizException) { - $job->update([ - 'status' => DistributionPreIncomeJob::STATUS_FAILED, - 'failed_reason' => $e->getMessage(), - ]); - } - } - } - }); - } -} diff --git a/app/Models/User.php b/app/Models/User.php index f6b1227b..eaa0e11c 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -133,7 +133,7 @@ class User extends Model implements AuthorizableContract, AuthenticatableContrac */ public function isVip(): bool { - return true; + return $this->userInfo?->growth_value >= 650; } /**