解决微信支付为false的情况下,启动报错

pull/1/head
zccbbg 2 years ago
parent 6a626261c4
commit 17b510e59a

@ -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;

@ -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

Loading…
Cancel
Save