pull/1/head
sjm 2 years ago
parent b78b51d384
commit 80bc6f2598

@ -9,6 +9,7 @@ import org.springframework.context.annotation.DependsOn;
@Configuration
@DependsOn("WechatPayData")
@ConditionalOnProperty(prefix = "wechat", name = "enabled", havingValue = "true")
public class WechatConfig {
@Bean

@ -50,6 +50,7 @@ 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;
@ -96,6 +97,7 @@ public class H5OrderService {
private OrderOperateHistoryService orderOperateHistoryService;
@Autowired
@Lazy
private WechatPayService wechatPayService;
@Autowired

@ -8,11 +8,13 @@ import com.wechat.pay.java.service.payments.jsapi.model.PrepayResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
@Service
@Slf4j
@ConditionalOnProperty(prefix = "wechat", name = "enabled", havingValue = "true")
public class WechatPayService {
@Autowired

Loading…
Cancel
Save