密码未设置
This commit is contained in:
@@ -703,6 +703,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||||||
updateChain.set(OrderInfo::getPayType, payType.getValue());
|
updateChain.set(OrderInfo::getPayType, payType.getValue());
|
||||||
}
|
}
|
||||||
updateChain.update();
|
updateChain.update();
|
||||||
|
orderDetailService.updateChain().set(OrderDetail::getStatus, OrderStatusEnums.DONE.getCode()).eq(OrderDetail::getOrderId, orderInfo.getId()).update();
|
||||||
// if (!"after-pay".equals(orderInfo.getPayMode())) {
|
// if (!"after-pay".equals(orderInfo.getPayMode())) {
|
||||||
//发送打票信息
|
//发送打票信息
|
||||||
rabbitPublisher.sendOrderPrintMsg(orderInfo.getId().toString());
|
rabbitPublisher.sendOrderPrintMsg(orderInfo.getId().toString());
|
||||||
|
|||||||
@@ -192,6 +192,9 @@ public class PayServiceImpl implements PayService {
|
|||||||
AssertUtil.isNull(shopUser, "会员不存在");
|
AssertUtil.isNull(shopUser, "会员不存在");
|
||||||
UserInfo userInfo = userInfoService.getById(shopUser.getUserId());
|
UserInfo userInfo = userInfoService.getById(shopUser.getUserId());
|
||||||
AssertUtil.isNull(userInfo, "用户信息不存在");
|
AssertUtil.isNull(userInfo, "用户信息不存在");
|
||||||
|
if (userInfo.getPayPwd() == null) {
|
||||||
|
return CzgResult.failure("未设置支付密码");
|
||||||
|
}
|
||||||
if (!userInfo.getPayPwd().equals(MD5Util.md5AsHex(payParam.getPwd()))) {
|
if (!userInfo.getPayPwd().equals(MD5Util.md5AsHex(payParam.getPwd()))) {
|
||||||
return CzgResult.failure("支付密码错误");
|
return CzgResult.failure("支付密码错误");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user