From 8dbf7986474d1f7a530383b9beee0c10fa0f89b8 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Tue, 29 Oct 2024 23:43:38 +0800 Subject: [PATCH] fix CalulateUserSeedBonus for doner --- app/Jobs/CalculateUserSeedBonus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/CalculateUserSeedBonus.php b/app/Jobs/CalculateUserSeedBonus.php index b750d0a93..266f19cf6 100644 --- a/app/Jobs/CalculateUserSeedBonus.php +++ b/app/Jobs/CalculateUserSeedBonus.php @@ -92,7 +92,7 @@ public function handle() $bonusLog = "[CLEANUP_CLI_CALCULATE_SEED_BONUS_HANDLE_USER], user: $uid, seedBonusResult: " . nexus_json_encode($seedBonusResult); $all_bonus = $seedBonusResult['seed_bonus']; $bonusLog .= ", all_bonus: $all_bonus"; - if ($isDonor) { + if ($isDonor && $donortimes_bonus != 0) { $all_bonus = $all_bonus * $donortimes_bonus; $bonusLog .= ", isDonor, donortimes_bonus: $donortimes_bonus, all_bonus: $all_bonus"; }