去除小票打印二维码

This commit is contained in:
韩鹏辉 2024-06-22 13:42:29 +08:00
parent d86463155d
commit bdf9a2c89f
1 changed files with 5 additions and 2 deletions

View File

@ -144,6 +144,11 @@ public class PayService {
@Transactional(rollbackFor = Exception.class)
public Result payOrder(String openId,String orderId,String ip) throws Exception {
if(ObjectUtil.isEmpty(openId)||Objects.isNull(openId)){
return Result.fail("付款用户[userId]参数不能为空");
}
TbOrderInfo orderInfo= tbOrderInfoMapper.selectByPrimaryKey(Integer.valueOf(orderId));
if(!"unpaid".equals(orderInfo.getStatus())&&!"paying".equals(orderInfo.getStatus())){
@ -836,8 +841,6 @@ public class PayService {
}
}
}
return Result.fail("失败");
}