diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php
index 38a97e2c..2cd51705 100755
--- a/app/index/controller/Index.php
+++ b/app/index/controller/Index.php
@@ -48,6 +48,12 @@ class Index extends AdminBase
$admin = new \app\admin\model\Admin;
$list['xingming'] = $admin->where('id',session('user_id'))
->value('xingming');
+ $create_time = $admin->where('id',session('user_id'))
+ ->value('create_time');
+ $create_time = date("Y-m-d G:i:s", $create_time);
+ $jyshijian = config('shangma.mimaguoqi');
+ $list['create_time'] = strtotime("$create_time+".$jyshijian." day");
+
$list['group'] = $admin->searchOne(session('user_id'))->groupnames;
$list['server'] = request()->server();
diff --git a/app/index/view/index/welcome.html b/app/index/view/index/welcome.html
index 51e346a0..ee54dace 100755
--- a/app/index/view/index/welcome.html
+++ b/app/index/view/index/welcome.html
@@ -43,13 +43,13 @@
-
- 为了信息安全,请及时
+
+ 您正在使用初始密码,为了保障信息安全,初始密码将于{$list.create_time}停用,请及时
修改密码
- 。修改方法:右上角->姓名->修改密码。
+ 。
diff --git a/app/login/controller/Index.php b/app/login/controller/Index.php
index 2affc275..33902c02 100755
--- a/app/login/controller/Index.php
+++ b/app/login/controller/Index.php
@@ -69,8 +69,14 @@ class Index extends BaseController
$admin = new \app\admin\model\Admin;
$userinfo = $admin::where('username|phone', $list['username'])
->where('status', 1)
- ->field('id, lastip, username, ip, denglucishu, lasttime, thistime, password')
+ ->field('id, lastip, username, ip, denglucishu, lasttime, thistime, password, create_time')
->find();
+ $jyshijian = config('shangma.mimaguoqi');
+ $now = time();
+ $jinyong = strtotime("$userinfo->create_time+".$jyshijian." day");
+ if ($jinyong < $now && $list['password'] == '123456') {
+ $userinfo->status = false;
+ }
// 将本次信息上传到服务器上
$userinfo->lastip = $userinfo->ip;
$userinfo->ip = request()->ip();
diff --git a/app/luru/view/index/biaolu.html b/app/luru/view/index/biaolu.html
index 7348d4b1..11eae5d4 100755
--- a/app/luru/view/index/biaolu.html
+++ b/app/luru/view/index/biaolu.html
@@ -87,7 +87,7 @@