diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java index 58d652f0..31d23f15 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java @@ -748,15 +748,15 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl stringObjectMap = repairOrderInfoService.payTransactions(orderInfo.getId()); payUrl = (String) stringObjectMap.get("prepay_id"); + // 这个地方可能报错,报错就不生成二维码了,保证工单是能出来的 + // 生成收款二维码 + int width = 100, height = 100; + byte[] texts = CreateQRCodeUtil.GenerateQRCode(payUrl, width, height); + if (ObjectUtil.isNotEmpty(texts)){ + params.put("qrCode", new PictureRenderData(width, height, PictureType.PNG, texts)); + } }catch (Exception e){ e.printStackTrace(); - throw exception0(500, "系统异常"); - } - // 生成收款二维码 - int width = 100, height = 100; - byte[] texts = CreateQRCodeUtil.GenerateQRCode(payUrl, width, height); - if (ObjectUtil.isNotEmpty(texts)){ - params.put("qrCode", new PictureRenderData(width, height, PictureType.PNG, texts)); } Configure config = configureBuilder.build();