From c09754996174817b5af208c2480b31172a3f7e5a Mon Sep 17 00:00:00 2001 From: shiyang <316555390@qq.com> Date: Thu, 7 Apr 2022 13:58:42 +0800 Subject: [PATCH] update --- .../java/com/lyms/talkonlineweb/controller/DoctorController.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java index b1e71db..4812b95 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java @@ -299,10 +299,7 @@ public class DoctorController { @TokenRequired public BaseResponse updateDoctorPassword(@RequestBody LymsDoctor doctor){ BaseResponse baseResponse=new BaseResponse(); - - if(StringUtil.isNotEmpty(doctor.getDpasswd())){ - doctor.setDpasswd(DigestUtils.md5DigestAsHex(Constant.COMMON_PASSWD.getBytes())); - } + doctor.setDpasswd(DigestUtils.md5DigestAsHex(Constant.COMMON_PASSWD.getBytes())); boolean f=lymsDoctorService.updateById(doctor); baseResponse.setErrorcode(f==true?0:1); baseResponse.setErrormsg(f==true?"成功":"失败"); -- 1.8.3.1