diff --git a/webapp/services/RoomBattleDataService.php b/webapp/services/RoomBattleDataService.php index 411da0d0..6bc405cc 100644 --- a/webapp/services/RoomBattleDataService.php +++ b/webapp/services/RoomBattleDataService.php @@ -196,7 +196,7 @@ class RoomBattleDataService extends BaseService { $gold = $this->_hashRateBoost($userDb,$gold,$hashRateValue); //Vip加成金币获得 $rightVal = myself()->_getVipRightsVal(mt\StakingVip::GAIN_GOLD); - if ($rightVal > 0){ + if ($gold > 0 && $rightVal > 0){ $gold += $rightVal; } }else{