用户可以开关是否使用密码
This commit is contained in:
parent
ca6039bb55
commit
427cee9f6b
|
|
@ -20,4 +20,5 @@ public class UserInfoPwdEditDTO {
|
|||
*/
|
||||
@NotEmpty(message = "验证码不为空")
|
||||
private String code;
|
||||
private Integer usePayPwd;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,5 +94,6 @@ public class UserInfo implements Serializable {
|
|||
|
||||
@Column(onInsertValue = "now()", onUpdateValue = "now()")
|
||||
private LocalDateTime updateTime;
|
||||
private Integer usePayTwd;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> i
|
|||
throw new ApiNotPrintException("验证码错误");
|
||||
}
|
||||
|
||||
userInfo.setUsePayTwd(userInfoPwdEditDTO.getUsePayPwd());
|
||||
userInfo.setPayPwd(SecureUtil.md5(userInfoPwdEditDTO.getPayPwd()));
|
||||
boolean b = updateById(userInfo);
|
||||
if (b) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue