Skip to content

Commit

Permalink
fix buy torrent param key
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Nov 27, 2024
1 parent 7186bd8 commit 186862d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Utils/ThirdPartyJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public static function addBuyTorrent(int $userId, int $torrentId): void

private static function enqueueJobBuyTorrent(array $params): void
{
if (!empty($params['userId']) && !empty($params['torrentId'])) {
$job = new BuyTorrent($params['userId'], $params['torrentId']);
if (!empty($params['user_id']) && !empty($params['torrent_id'])) {
$job = new BuyTorrent($params['user_id'], $params['torrent_id']);
Queue::push($job);
} else {
do_log("no userId or torrentId: " . json_encode($params), "error");
do_log("no user_id or torrent_id: " . json_encode($params), "error");
}
}
}

0 comments on commit 186862d

Please sign in to comment.