From 55e8faa2dfcfd2b71f7bca03319b9619d3050163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Tue, 8 Jan 2019 14:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=80=83=E8=AF=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E3=80=81=E5=AD=A6=E7=94=9F=E5=88=97=E8=A1=A8=E5=92=8C?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/kaoshi/view/index/index.html | 2 -- application/login/controller/Index.php | 5 +---- application/renshi/view/student/index.html | 5 +++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/application/kaoshi/view/index/index.html b/application/kaoshi/view/index/index.html index 9627d18d..bfb9621d 100644 --- a/application/kaoshi/view/index/index.html +++ b/application/kaoshi/view/index/index.html @@ -37,7 +37,6 @@ 标题 - 学期 分类 参考年级 参考学科 @@ -67,7 +66,6 @@ var mycolumns = [ { "data": "id" }, { "data": "title" }, - { "data": "xueqi" }, { "data": "category"}, { "data": "nianjinames"}, { "data": "subjectnames"}, diff --git a/application/login/controller/Index.php b/application/login/controller/Index.php index 58fefd00..4ddf352d 100644 --- a/application/login/controller/Index.php +++ b/application/login/controller/Index.php @@ -64,7 +64,7 @@ class Index extends Controller // 将本次信息上传到服务器上 $userinfo = AD::getByUsername($data['username']); $userinfo->lastip = $userinfo->ip; - $userinfo->ip = request()->host(); + $userinfo->ip = request()->ip(); $userinfo->denglucishu = ['inc', 1]; $userinfo->lasttime = $userinfo->thistime; $userinfo->thistime = time(); @@ -114,8 +114,5 @@ class Index extends Controller } return $check; } - - - } diff --git a/application/renshi/view/student/index.html b/application/renshi/view/student/index.html index 1cf257b9..5e7207bb 100644 --- a/application/renshi/view/student/index.html +++ b/application/renshi/view/student/index.html @@ -75,12 +75,13 @@ $njlist = nianjiList(); $bjnames = banjinamelist(); $njnum = array_keys($njlist); - $bjlist = $banji->where('ruxuenian','in',$njnum)->max('paixu'); + + $bjlist = $banji->where('ruxuenian','in',$njnum)->max('paixu') + 1; {/php}
- {for start="1" end="7" } + {for start="1" end="$bjlist" }