From e694aac928278a170a858ff2814e3bce2c15ea12 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 26 Aug 2025 10:36:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(pricing):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=87=AD=E8=AF=81=E6=89=93=E5=8D=B0=E6=9C=8D=E5=8A=A1=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20URL=20=E9=93=BE=E6=8E=A5=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在生成 URL链接时,添加了 scenicId --- .../basic/pricing/service/impl/VoucherPrintServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/ycwl/basic/pricing/service/impl/VoucherPrintServiceImpl.java b/src/main/java/com/ycwl/basic/pricing/service/impl/VoucherPrintServiceImpl.java index 0f50bbb..19d178c 100644 --- a/src/main/java/com/ycwl/basic/pricing/service/impl/VoucherPrintServiceImpl.java +++ b/src/main/java/com/ycwl/basic/pricing/service/impl/VoucherPrintServiceImpl.java @@ -213,7 +213,8 @@ public class VoucherPrintServiceImpl implements VoucherPrintService { private void printTicket(VoucherPrintRecord record) throws Exception { FaceEntity face = faceRepository.getFace(record.getFaceId()); MpConfigEntity scenicMpConfig = scenicRepository.getScenicMpConfig(face.getScenicId()); - String urlLink = WxMpUtil.generateUrlLink(scenicMpConfig.getAppId(), scenicMpConfig.getAppSecret(), "pages/videoSynthesis/index", "code=" + record.getVoucherCode() + "&faceId=" + face.getId()); + String urlLink = WxMpUtil.generateUrlLink(scenicMpConfig.getAppId(), scenicMpConfig.getAppSecret(), "pages/videoSynthesis/index", "code=" + record.getVoucherCode() + "&scenicId=" + face.getScenicId() + "&faceId=" + face.getId()); + urlLink = urlLink + "?cq=T"+record.getVoucherCode(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日"); SimpleDateFormat sdf2 = new SimpleDateFormat("MM月dd日"); log.info(" 调用打印机打印小票,记录ID: {}, 券码: {}", record.getId(), record.getVoucherCode());