From 56a97f7eef5790dd21c43af435c8410180516631 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 20 Jan 2020 15:28:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/GameController.class.php | 2 +- Application/Admin/View/Game/add.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index b4fe3dbb1..cd6962103 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -304,7 +304,7 @@ class GameController extends ThinkController public function edit($id = null) { if (IS_POST) { - if ($_POST['game_score'] <0 || $_POST['game_score'] > 5) { + if ($_POST['game_score'] < 0 || $_POST['game_score'] > 5) { $this->error('游戏评分只能为0-5之间的数字!'); exit; } diff --git a/Application/Admin/View/Game/add.html b/Application/Admin/View/Game/add.html index c1ac8fa69..fb51617b7 100644 --- a/Application/Admin/View/Game/add.html +++ b/Application/Admin/View/Game/add.html @@ -431,13 +431,13 @@