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(