From a221a6577618195d7c674c0ab42133de5fa6a95d Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Mon, 23 Sep 2024 14:56:46 +0800 Subject: [PATCH] 1 --- webapp/controller/OutAppCircuitController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/OutAppCircuitController.class.php b/webapp/controller/OutAppCircuitController.class.php index c9fd2927..8a89d0bb 100644 --- a/webapp/controller/OutAppCircuitController.class.php +++ b/webapp/controller/OutAppCircuitController.class.php @@ -72,7 +72,7 @@ class OutAppCircuitController extends BaseController { $ranking = $k+1; $rewardWeight = \mt\CircuitReward::getRewardWeight($ranking); if ($ranking <= $count){ - $cec = ($rewardWeight / $totalWeight) * $cecPool; + $cec = max(1, floor(($rewardWeight / $totalWeight) * $cecPool)); } $user = User::find($value['account_id']); CircuitReward::add(