diff --git a/README.md b/README.md index 1cda94b..8fb3191 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,6 @@ - 项目会不定时进行更新,**建议⭐star⭐和👁️watch👁️一份**。 - 演示地址:https://www.gougucms.com - 文档地址:[https://blog.gougucms.com/home/book/detail/bid/1.html](https://blog.gougucms.com/home/book/detail/bid/1.html) -- 后台体验地址:[https://www.gougucms.com/admin/index/index.html](https://www.gougucms.com/admin/index/index.html) -- 后台体验账号:gougucms 密码:gougucms - 开发交流QQ群:24641076 ### ⭕ 开源项目 diff --git a/app/admin/controller/Admin.php b/app/admin/controller/Admin.php index 5861d67..16105b8 100644 --- a/app/admin/controller/Admin.php +++ b/app/admin/controller/Admin.php @@ -56,16 +56,13 @@ class Admin extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - if (!empty($param['pwd'])) { + if (!empty($param['edit_pwd'])) { //重置密码 - if (empty($param['pwd_confirm']) or $param['pwd_confirm'] !== $param['pwd']) { + if (empty($param['edit_pwd_confirm']) or $param['edit_pwd_confirm'] !== $param['edit_pwd']) { return to_assign(1, '两次密码不一致'); } $param['salt'] = set_salt(20); - $param['pwd'] = set_password($param['pwd'], $param['salt']); - } else { - unset($param['pwd']); - unset($param['salt']); + $param['pwd'] = set_password($param['edit_pwd'], $param['salt']); } // 启动事务 diff --git a/public/static/home/css/index.css b/public/static/home/css/index.css index f9941ed..5e5c349 100644 --- a/public/static/home/css/index.css +++ b/public/static/home/css/index.css @@ -30,7 +30,7 @@ .banner .intro-img img{width: 100%;} -.advantage {background:#ffffff; width: 100%; text-align: center; padding: 80px 0; font-weight: 100;} +.advantage {background:#ffffff; width: 100%; text-align: center; padding: 60px 0 80px; font-weight: 100;} .feature {display: block;background: #fff; padding: 36px 20px 20px;text-align: center;font-size: 16px; line-height: 1.5; word-wrap: break-word; box-shadow: 0px 0 30px rgb(1 41 112 / 10%); height: 100%; background-color: #fff; text-align: center; transition: 0.3s; border-radius: 6px;} .feature:hover { background-color: #4385F5; background: linear-gradient(to left, #4385F5, #00aaff); color: #fff; } .feature .part-icon {display: inline-block;border-radius: 100%;background: #f5f5f5; padding: 25px;width: 60px; height: 60px;}