余额支付密码开关校验
This commit is contained in:
parent
427cee9f6b
commit
43ef068ab1
|
|
@ -225,11 +225,10 @@ public class PayServiceImpl implements PayService {
|
|||
AssertUtil.isNull(shopUser, "会员不存在");
|
||||
UserInfo userInfo = userInfoService.getById(shopUser.getUserId());
|
||||
AssertUtil.isNull(userInfo, "用户信息不存在");
|
||||
if (userInfo.getPayPwd() == null) {
|
||||
return CzgResult.failure("未设置支付密码");
|
||||
}
|
||||
if (!userInfo.getPayPwd().equals(MD5Util.md5AsHex(payParam.getPwd()))) {
|
||||
return CzgResult.failure("支付密码错误");
|
||||
if (userInfo.getUsePayTwd() == 1 ) {
|
||||
if (userInfo.getPayPwd() == null || !userInfo.getPayPwd().equals(MD5Util.md5AsHex(payParam.getPwd()))) {
|
||||
return CzgResult.failure("支付密码错误");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue