From 17b510e59a907fa1ce1202b5d7ed517c3720f993 Mon Sep 17 00:00:00 2001 From: zccbbg Date: Mon, 15 Jan 2024 18:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E4=B8=BAfalse=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=EF=BC=8C=E5=90=AF=E5=8A=A8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/test/java/com/fjp/lc/test/service/ServiceTest.java | 7 ------- .../src/main/java/com/cyl/h5/service/H5OrderService.java | 5 +---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/ruoyi-admin/src/test/java/com/fjp/lc/test/service/ServiceTest.java b/ruoyi-admin/src/test/java/com/fjp/lc/test/service/ServiceTest.java index eb4b608..5d2404b 100644 --- a/ruoyi-admin/src/test/java/com/fjp/lc/test/service/ServiceTest.java +++ b/ruoyi-admin/src/test/java/com/fjp/lc/test/service/ServiceTest.java @@ -8,8 +8,6 @@ import cn.hutool.crypto.symmetric.AES; import com.cyl.h5.pojo.dto.PayNotifyMessageDTO; import com.cyl.h5.service.H5OrderService; import com.cyl.manager.ums.service.MemberCartService; -import com.cyl.wechat.WechatAuthService; -import com.cyl.wechat.WechatPayService; import com.ruoyi.RuoYiApplication; import com.ruoyi.common.config.properties.SmsProperties; import com.ruoyi.common.core.sms.AliyunSmsTemplate; @@ -91,11 +89,6 @@ public class ServiceTest { System.out.println("id:" + id); } - @Autowired - private WechatPayService wechatPayService; - @Autowired - private WechatAuthService wechatAuthService; - @Autowired private H5OrderService h5OrderService; diff --git a/ruoyi-mall/src/main/java/com/cyl/h5/service/H5OrderService.java b/ruoyi-mall/src/main/java/com/cyl/h5/service/H5OrderService.java index 9d10052..989f2da 100644 --- a/ruoyi-mall/src/main/java/com/cyl/h5/service/H5OrderService.java +++ b/ruoyi-mall/src/main/java/com/cyl/h5/service/H5OrderService.java @@ -49,8 +49,6 @@ import com.wechat.pay.java.service.partnerpayments.jsapi.model.Transaction; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; - -import org.springframework.context.annotation.Lazy; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.Pageable; import org.springframework.http.ResponseEntity; @@ -97,8 +95,7 @@ public class H5OrderService { @Autowired private OrderOperateHistoryService orderOperateHistoryService; - @Autowired - @Lazy + @Autowired(required = false) private WechatPayService wechatPayService; @Autowired