From e24b237890975632dc6d51fc0358b520bf7831bc Mon Sep 17 00:00:00 2001 From: xiaomlove <353856593@qq.com> Date: Fri, 22 Nov 2024 01:51:24 +0800 Subject: [PATCH] fix ThirdPartyJob InvalidArgumentException --- app/Utils/ThirdPartyJob.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Utils/ThirdPartyJob.php b/app/Utils/ThirdPartyJob.php index 96a8b4a1..ceb78a78 100644 --- a/app/Utils/ThirdPartyJob.php +++ b/app/Utils/ThirdPartyJob.php @@ -3,7 +3,6 @@ namespace App\Utils; use App\Jobs\BuyTorrent; -use http\Exception\InvalidArgumentException; use Illuminate\Support\Facades\Queue; use Nexus\Database\NexusDB; use Nexus\Database\NexusLock; @@ -31,7 +30,7 @@ public function __invoke(): void $successCount++; match ($data['name']) { self::JOB_BUY_TORRENT => self::enqueueJobBuyTorrent($data), - default => throw new InvalidArgumentException("invalid name: {$data['name']}") + default => throw new \InvalidArgumentException("invalid name: {$data['name']}") }; } else { do_log(sprintf("%s no name, skip", $item), "error");