添加agentId
This commit is contained in:
+7
-7
@@ -12,21 +12,21 @@ import org.springframework.context.annotation.Scope;
|
|||||||
@Configuration
|
@Configuration
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class WxCpConfigure {
|
public class WxCpConfigure {
|
||||||
|
|
||||||
@Value("${wxcp.corpId}")
|
@Value("${wxcp.corpId}")
|
||||||
private String corpId;
|
private String corpId;
|
||||||
@Value("${wxcp.farmAppid}")
|
@Value("${wxcp.secret}")
|
||||||
private String farmAppid;
|
private String secret;
|
||||||
@Value("${wxcp.farmSecret}")
|
@Value("${wxcp.agentId}")
|
||||||
private String farmSecret;
|
private Integer agentId;
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public WxCpService wxCpService(){
|
public WxCpService wxCpService(){
|
||||||
|
|
||||||
WxCpDefaultConfigImpl config = new WxCpDefaultConfigImpl();
|
WxCpDefaultConfigImpl config = new WxCpDefaultConfigImpl();
|
||||||
config.setCorpId("wwb9f9734e8e124761");
|
config.setCorpId(corpId);
|
||||||
config.setCorpSecret("B2bdszjVvby6jfbZf-TQOGeslpOEzLFUYWHldYxtkWA");
|
config.setCorpSecret(secret);
|
||||||
|
config.setAgentId(agentId);
|
||||||
|
|
||||||
WxCpServiceImpl wxCpService = new WxCpServiceImpl();
|
WxCpServiceImpl wxCpService = new WxCpServiceImpl();
|
||||||
wxCpService.setWxCpConfigStorage(config);
|
wxCpService.setWxCpConfigStorage(config);
|
||||||
|
|||||||
@@ -150,8 +150,8 @@ smms:
|
|||||||
|
|
||||||
wxcp:
|
wxcp:
|
||||||
corpId: wwb9f9734e8e124761
|
corpId: wwb9f9734e8e124761
|
||||||
farmAppid: 1000036
|
agentId: 1000036
|
||||||
farmSecret: UDSKsn0_LAPYqSwjH9E-AfY_X40lq0sormfe1yV_6Gc
|
secret: B2bdszjVvby6jfbZf-TQOGeslpOEzLFUYWHldYxtkWA
|
||||||
|
|
||||||
#农场小程序
|
#农场小程序
|
||||||
wxma:
|
wxma:
|
||||||
|
|||||||
Reference in New Issue
Block a user