diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 86d530a69..8401d8d1d 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -290,6 +290,10 @@ class GameController extends ThinkController public function edit($id = null) { if (IS_POST) { + if ($_POST['game_score'] <0 || $_POST['game_score'] > 5) { + $this->error('游戏评分只能为0-5之间的数字!'); + exit; + } /*if($_POST['apply_status']==0&&$_POST['game_status']==1){ $this->error('游戏未审核不允许显示');//游戏添加完成 }*/