From e57a5f8e50ebedc48ae12aa2c4def759fdfc89d1 Mon Sep 17 00:00:00 2001 From: tping Date: Wed, 30 Dec 2020 16:26:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/SocietyInfoController.class.php | 3 +++ Application/Admin/View/SocietyInfo/lists.html | 8 ++++---- Application/Admin/View/SocietyInfo/timeset.html | 6 +++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Controller/SocietyInfoController.class.php b/Application/Admin/Controller/SocietyInfoController.class.php index 85027a5fe..1725709ad 100644 --- a/Application/Admin/Controller/SocietyInfoController.class.php +++ b/Application/Admin/Controller/SocietyInfoController.class.php @@ -143,6 +143,9 @@ class SocietyInfoController extends ThinkController $num = $config['value']; if (IS_POST) { $num = I('num'); + if ($num < 0) { + $this->error("时间设置不能小于0"); + } M('config', 'sys_')->where([ 'name' => 'SOCIETY_INFO_COMMUNITION_GAP' ])->save([ diff --git a/Application/Admin/View/SocietyInfo/lists.html b/Application/Admin/View/SocietyInfo/lists.html index 61bd2db6a..3880f3942 100644 --- a/Application/Admin/View/SocietyInfo/lists.html +++ b/Application/Admin/View/SocietyInfo/lists.html @@ -111,9 +111,9 @@ - -
-

文件格式参考:请严格按照此格式,文件的第一行必须是字段名,且字段名不允许修改,游戏类型目前仅支持:国战、宫斗、返利服、商战、传奇、仙侠、卡牌、策略如果游戏为多个类型,请用“/”隔开,如:策略/卡牌

+
+

文件格式参考:请严格按照此格式,文件的第一行必须是字段名,且字段名不允许修改,游戏类型目前仅支持:国战、宫斗、返利服、商战、传奇、仙侠、卡牌、策略如果游戏为多个类型,请用“/”隔开,如:策略/卡牌

+
@@ -193,7 +193,7 @@