diff --git a/Application/Base/Service/GameRebateService.class.php b/Application/Base/Service/GameRebateService.class.php index cd7622666..172e7d2f1 100644 --- a/Application/Base/Service/GameRebateService.class.php +++ b/Application/Base/Service/GameRebateService.class.php @@ -611,6 +611,9 @@ class GameRebateService throw new \Exception('倍数上限需大于0'); } + if ($defaultTimes > $maxTimes) { + throw new \Exception('默认倍数不能大于倍数上限'); + } $setting = M('rebate_times_setting', 'tab_')->where(['base_game_id' => $baseGameId, 'type' => $type])->find();