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