余额支付密码开关校验支付密码可为空

This commit is contained in:
张松
2025-09-29 20:43:59 +08:00
parent 49b704409c
commit 138e6a88ea
3 changed files with 5 additions and 4 deletions

View File

@@ -88,8 +88,10 @@ public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> i
throw new ApiNotPrintException("验证码错误");
}
if (StrUtil.isNotBlank(userInfoPwdEditDTO.getCheckPayPwd())) {
userInfo.setPayPwd(SecureUtil.md5(userInfoPwdEditDTO.getPayPwd()));
}
userInfo.setUsePayPwd(userInfoPwdEditDTO.getUsePayPwd());
userInfo.setPayPwd(SecureUtil.md5(userInfoPwdEditDTO.getPayPwd()));
boolean b = updateById(userInfo);
if (b) {
redisService.del(key);