From 6c7be4734cdb9688ef6dcfeeb7edde6766ee0c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=BE=E6=A0=91?= Date: Wed, 29 May 2019 12:58:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=95=E4=BD=8D=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/system/controller/School.php | 2 +- application/system/view/school/create.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/system/controller/School.php b/application/system/controller/School.php index bed77d20..1b3827cb 100644 --- a/application/system/controller/School.php +++ b/application/system/controller/School.php @@ -151,7 +151,7 @@ class School extends Base // 获取表单数据 $list = request() - ->only(['title','jiancheng','biaoshi','xingzhi','jibie','xueduan','paixu'],'put'); + ->only(['title','jiancheng','biaoshi','xingzhi','jibie','xueduan','paixu'=>999],'put'); // 验证表单数据 $result = $validate->check($list); diff --git a/application/system/view/school/create.html b/application/system/view/school/create.html index c309e56f..64368451 100644 --- a/application/system/view/school/create.html +++ b/application/system/view/school/create.html @@ -94,7 +94,7 @@
+ autocomplete="off" class="layui-input" value="{$list.data.paixu|default='999'}" placeholder="数字1-999">