From 16d91ec2eed55b8c8355b0cd0f049e02aa9cf632 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Mon, 2 Dec 2019 15:01:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=B8=B8=E6=88=8F=E8=AF=84?= =?UTF-8?q?=E5=88=86=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/GameController.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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('游戏未审核不允许显示');//游戏添加完成 }*/