From 92c890763bc72d12a9894ed2d0f744df6df4ed9d Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期三, 30 八月 2023 16:04:04 +0800 Subject: [PATCH] 新增小程序商家商品列表 商品详情接口 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java index 1646006..37d3d22 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/RentingHourseRegisterServiceImpl.java @@ -94,7 +94,7 @@ houseRegister.setCreateAt(nowDate); houseRegister.setUpdateAt(nowDate); try { - WxMaQrcodeService qrCodeService = wxMaConfiguration.getMaService().getQrcodeService(); + WxMaQrcodeService qrCodeService = wxMaConfiguration.getMaService(registerDTO.getAreaCode()).getQrcodeService(); byte[] bytes = qrCodeService.createWxaCodeUnlimitBytes("id=" + houseRegister.getId() + "&type=6", minAppJumpPage, 30, true, null, false); String authCode = String.format("data:image/png;base64,%s", Base64.encode(bytes)); @@ -439,12 +439,12 @@ } @Override - public void updateAllHouseUnionAppCode() { + public void updateAllHouseUnionAppCode(String areaCode) { List<RentingHourseRegister> list = this.baseMapper.selectList(null); if (!list.isEmpty()) { list.stream().forEach(houseRegister -> { try { - WxMaQrcodeService qrCodeService = wxMaConfiguration.getMaService().getQrcodeService(); + WxMaQrcodeService qrCodeService = wxMaConfiguration.getMaService(areaCode).getQrcodeService(); byte[] bytes = qrCodeService.createWxaCodeUnlimitBytes("id=" + houseRegister.getId() + "&type=6", minAppJumpPage, 30, true, null, false); String authCode = String.format("data:image/png;base64,%s", Base64.encode(bytes)); -- Gitblit v1.7.1