|
|
|
@@ -1,9 +1,9 @@ |
|
|
|
package com.iformall.config; |
|
|
|
|
|
|
|
import me.chanjar.weixin.mp.api.WxMpConfigStorage; |
|
|
|
import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; |
|
|
|
import me.chanjar.weixin.mp.api.WxMpService; |
|
|
|
import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; |
|
|
|
import me.chanjar.weixin.mp.config.WxMpConfigStorage; |
|
|
|
import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
@@ -24,7 +24,7 @@ public class WechatMpConfig { |
|
|
|
} |
|
|
|
|
|
|
|
public WxMpConfigStorage wxConfigProvider(){ |
|
|
|
WxMpInMemoryConfigStorage wxConfigProvider = new WxMpInMemoryConfigStorage(); |
|
|
|
WxMpDefaultConfigImpl wxConfigProvider = new WxMpDefaultConfigImpl(); |
|
|
|
wxConfigProvider.setAppId(wechatWebProperties.getAppId()); |
|
|
|
wxConfigProvider.setSecret(wechatWebProperties.getSecret()); |
|
|
|
return wxConfigProvider; |
|
|
|
|