mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix ThirdPartyJob InvalidArgumentException
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
namespace App\Utils;
|
namespace App\Utils;
|
||||||
|
|
||||||
use App\Jobs\BuyTorrent;
|
use App\Jobs\BuyTorrent;
|
||||||
use http\Exception\InvalidArgumentException;
|
|
||||||
use Illuminate\Support\Facades\Queue;
|
use Illuminate\Support\Facades\Queue;
|
||||||
use Nexus\Database\NexusDB;
|
use Nexus\Database\NexusDB;
|
||||||
use Nexus\Database\NexusLock;
|
use Nexus\Database\NexusLock;
|
||||||
@@ -31,7 +30,7 @@ final class ThirdPartyJob {
|
|||||||
$successCount++;
|
$successCount++;
|
||||||
match ($data['name']) {
|
match ($data['name']) {
|
||||||
self::JOB_BUY_TORRENT => self::enqueueJobBuyTorrent($data),
|
self::JOB_BUY_TORRENT => self::enqueueJobBuyTorrent($data),
|
||||||
default => throw new InvalidArgumentException("invalid name: {$data['name']}")
|
default => throw new \InvalidArgumentException("invalid name: {$data['name']}")
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
do_log(sprintf("%s no name, skip", $item), "error");
|
do_log(sprintf("%s no name, skip", $item), "error");
|
||||||
|
|||||||
Reference in New Issue
Block a user