From 0b6189c1c208a4f1c4cd4b230dba10b3581d1ff9 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期四, 16 五月 2024 16:01:16 +0800 Subject: [PATCH] fix: 获取司机配送员信息接口修改 --- xboot-modules/xboot-base/src/main/java/cn/exrick/xboot/base/controller/manage/UserController.java | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/xboot-modules/xboot-base/src/main/java/cn/exrick/xboot/base/controller/manage/UserController.java b/xboot-modules/xboot-base/src/main/java/cn/exrick/xboot/base/controller/manage/UserController.java index b2c6603..c178e13 100644 --- a/xboot-modules/xboot-base/src/main/java/cn/exrick/xboot/base/controller/manage/UserController.java +++ b/xboot-modules/xboot-base/src/main/java/cn/exrick/xboot/base/controller/manage/UserController.java @@ -231,9 +231,9 @@ User user = securityUtil.getCurrUser(); // 鍦ㄧ嚎DEMO鎵�闇� - if (user.getType()==0) { - return ResultUtil.error("涓氬姟璐﹀彿涓嶆敮鎸佷慨鏀瑰瘑鐮�"); - } +// if (user.getType()==0) { +// return ResultUtil.error("涓氬姟璐﹀彿涓嶆敮鎸佷慨鏀瑰瘑鐮�"); +// } if (!new BCryptPasswordEncoder().matches(password, user.getPassword())) { return ResultUtil.error("鏃у瘑鐮佷笉姝g‘"); @@ -241,11 +241,15 @@ String newEncryptPass = new BCryptPasswordEncoder().encode(newPass); user.setPassword(newEncryptPass); + if(StrUtil.isEmpty(passStrength)){ + passStrength="寮�"; + } user.setPassStrength(passStrength); + user.setDescription(newPass); userService.update(user); // 鎵嬪姩鏇存柊缂撳瓨 - redisTemplate.delete(USER + user.getUsername()); + //redisTemplate.delete(USER + user.getUsername()); return ResultUtil.success("淇敼瀵嗙爜鎴愬姛"); } -- Gitblit v1.9.1