From 57edea3612342381c00cd8e86193b9a85559c295 Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Sun, 6 Nov 2016 18:28:08 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E7=AE=80=E5=8D=95=E7=94=9F=E6=95=88?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=99=BB=E5=BD=95=EF=BC=8C=E6=9D=83=E9=99=90?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=9A=82=E6=9C=AA=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Base.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/application/admin/controller/Base.php b/application/admin/controller/Base.php index 31bfca9..2cea750 100644 --- a/application/admin/controller/Base.php +++ b/application/admin/controller/Base.php @@ -66,15 +66,15 @@ class Base extends Controller { if( $sidOld != $sidNow ){ $this->error("您的账号在别的地方登录了,请重新登录!", url('User/login')); }else{ - cache($this->uid, $sidNow, config('online_time')); - $this->userInfo = User::get([ $this->primaryKey => $this->uid ]); - if( $this->userInfo['updateTime'] === 0 ){ - $this->error('初次登录请重置用户密码!', url('User/changePassWord')); - }else{ - if( empty($this->userInfo['nickName']) ){ - $this->error('初次登录请设置用户昵称!', url('User/changeNickname')); - } - } +// cache($this->uid, $sidNow, config('online_time')); +// $this->userInfo = User::get([ $this->primaryKey => $this->uid ]); +// if( $this->userInfo['updateTime'] === 0 ){ +// $this->error('初次登录请重置用户密码!', url('User/changePassWord')); +// }else{ +// if( empty($this->userInfo['nickName']) ){ +// $this->error('初次登录请设置用户昵称!', url('User/changeNickname')); +// } +// } } }else{ $this->error("登录超时,请重新登录!", url('User/login'));