From c6c74354c64bfc2781b806ed4c6c384c1a6cb706 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Wed, 24 Sep 2025 14:46:14 +0700 Subject: [PATCH] fix users seeding_torrent_count --- app/Jobs/CalculateUserSeedBonus.php | 2 +- include/constants.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/CalculateUserSeedBonus.php b/app/Jobs/CalculateUserSeedBonus.php index 1b2dba4b..b26d1fcd 100644 --- a/app/Jobs/CalculateUserSeedBonus.php +++ b/app/Jobs/CalculateUserSeedBonus.php @@ -157,7 +157,7 @@ class CalculateUserSeedBonus implements ShouldQueue // NexusDB::statement($sql); $seedPointsUpdates[] = sprintf("when %d then ifnull(seed_points, 0) + %f", $uid, $seed_points); $seedPointsPerHourUpdates[] = sprintf("when %d then %f", $uid, $seedBonusResult['seed_points']); - $seedingTorrentCountUpdates[] = sprintf("when %d then %f", $uid, $seedBonusResult['count']); + $seedingTorrentCountUpdates[] = sprintf("when %d then %f", $uid, $seedBonusResult['torrent_peer_count']); $seedingTorrentSizeUpdates[] = sprintf("when %d then %f", $uid, $seedBonusResult['size']); $seedBonusUpdates[] = sprintf("when %d then seedbonus + %f", $uid, $all_bonus); if ($fd) { diff --git a/include/constants.php b/include/constants.php index 0a55ab80..6eaaa414 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@