diff --git a/star-tiger-framework-pay/star-tiger-framework-pay-core/src/main/java/com/snake19870227/stiger/pay/channel/alipay/AlipayChannelHandler.java b/star-tiger-framework-pay/star-tiger-framework-pay-core/src/main/java/com/snake19870227/stiger/pay/channel/alipay/AlipayChannelHandler.java index 2badfb9..b4cd735 100644 --- a/star-tiger-framework-pay/star-tiger-framework-pay-core/src/main/java/com/snake19870227/stiger/pay/channel/alipay/AlipayChannelHandler.java +++ b/star-tiger-framework-pay/star-tiger-framework-pay-core/src/main/java/com/snake19870227/stiger/pay/channel/alipay/AlipayChannelHandler.java @@ -57,7 +57,7 @@ public class AlipayChannelHandler extends BasePayChannelHandler { - protected WxpayChannelHandler(StarTigerPayProperties starTigerPayProperties, + public WxpayChannelHandler(StarTigerPayProperties starTigerPayProperties, IPayStorage payStorage) { super(starTigerPayProperties, payStorage); } diff --git a/star-tiger-framework-pay/star-tiger-framework-pay-server/src/main/java/com/snake19870227/stiger/pay/server/config/StarTigerPayServerAutoConfig.java b/star-tiger-framework-pay/star-tiger-framework-pay-server/src/main/java/com/snake19870227/stiger/pay/server/config/StarTigerPayServerAutoConfig.java index ee8dd1a..e5cbb58 100644 --- a/star-tiger-framework-pay/star-tiger-framework-pay-server/src/main/java/com/snake19870227/stiger/pay/server/config/StarTigerPayServerAutoConfig.java +++ b/star-tiger-framework-pay/star-tiger-framework-pay-server/src/main/java/com/snake19870227/stiger/pay/server/config/StarTigerPayServerAutoConfig.java @@ -8,6 +8,8 @@ import org.springframework.context.annotation.Import; import com.snake19870227.stiger.admin.dao.base.SysCfgMapper; import com.snake19870227.stiger.pay.channel.IPayStorage; +import com.snake19870227.stiger.pay.channel.PayChannelHandler; +import com.snake19870227.stiger.pay.channel.alipay.AlipayChannelHandler; import com.snake19870227.stiger.pay.config.StarTigerPaySampleConfig; import com.snake19870227.stiger.pay.dao.base.PayNotifyMapper; import com.snake19870227.stiger.pay.dao.base.PayRefundMapper; @@ -39,6 +41,12 @@ public IPayStorage payStorage(SysCfgMapper sysCfgMapper, return new DatabasePayStorageImpl(sysCfgMapper, payTradeMapper, payRefundMapper, payNotifyMapper); } + @Bean + public AlipayChannelHandler alipayChannelHandler(IPayStorage payStorage, + StarTigerPayProperties starTigerPayProperties) { + return new AlipayChannelHandler(starTigerPayProperties, payStorage); + } + @Bean public PayController payController(IPayStorage payStorage) { return new PayController(payStorage); diff --git a/star-tiger-samples/star-tiger-sample-pay/pom.xml b/star-tiger-samples/star-tiger-sample-pay/pom.xml index 8785590..44bc616 100644 --- a/star-tiger-samples/star-tiger-sample-pay/pom.xml +++ b/star-tiger-samples/star-tiger-sample-pay/pom.xml @@ -27,10 +27,13 @@ mysql mysql-connector-java + + com.github.snake19870227 + star-tiger-spring-boot-starter + com.github.snake19870227 star-tiger-framework-pay-server-spring-boot-starter - 0.7.0