update订单逻辑改造工厂模式

This commit is contained in:
2023-09-04 15:37:43 +08:00
parent 7cc8563de6
commit f6621a9a22
5 changed files with 28 additions and 15 deletions

View File

@@ -5,9 +5,11 @@ import com.jsowell.wxpay.common.WeChatPayParameter;
import com.jsowell.wxpay.utils.WechatPayUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
// @Order(value = 2)
// @Component
@Order(value = 2)
@Component
public class WechatPayConfig implements CommandLineRunner {
/**
* 公众号appid

View File

@@ -2,8 +2,9 @@ package com.jsowell.wxpay.config;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
// @Component
@Component
public class WeixinLoginProperties implements InitializingBean {
@Value("${weixin.login.gateway}")