From ff0caa1cf4f68b7da88fac3da53cc56f96e86715 Mon Sep 17 00:00:00 2001 From: xiaomlove <1939737565@qq.com> Date: Wed, 27 Nov 2024 22:25:05 +0800 Subject: [PATCH] unify BuyTorrent param --- app/Utils/ThirdPartyJob.php | 4 ++-- include/constants.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Utils/ThirdPartyJob.php b/app/Utils/ThirdPartyJob.php index d26a0656..2e54bf58 100644 --- a/app/Utils/ThirdPartyJob.php +++ b/app/Utils/ThirdPartyJob.php @@ -47,8 +47,8 @@ final class ThirdPartyJob { if (NexusDB::redis()->set($key, now()->toDateTimeString(), ['nx', 'ex' => 3600])) { $value = [ 'name' => self::JOB_BUY_TORRENT, - 'userId' => $userId, - 'torrentId' => $torrentId, + 'user_id' => $userId, + 'torrent_id' => $torrentId, ]; NexusDB::redis()->rPush(self::$queueKey, json_encode($value)); do_log("success addBuyTorrent: $key", "debug"); diff --git a/include/constants.php b/include/constants.php index ab2143d7..81d9f909 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@