add weixinapp face get context
This commit is contained in:
parent
572048be6c
commit
cbd66f7bb0
@ -26,6 +26,7 @@ public class WeixinAppFacade {
|
||||
private final SecCheckApi secCheckApi;
|
||||
private final SubscribeMessageApi subscribeMessageApi;
|
||||
private final PhoneNumberApi phoneNumberApi;
|
||||
private final WeixinAccount weixinAccount;
|
||||
|
||||
/**
|
||||
* Constructs {@link WeixinAppFacade} using {@link FileCacheStorager}.
|
||||
@ -110,6 +111,7 @@ public class WeixinAppFacade {
|
||||
this.secCheckApi = new SecCheckApi(tokenManager, properties);
|
||||
this.subscribeMessageApi = new SubscribeMessageApi(tokenManager, properties);
|
||||
this.phoneNumberApi = new PhoneNumberApi(tokenManager, properties);
|
||||
this.weixinAccount = weixinAccount;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -181,8 +183,12 @@ public class WeixinAppFacade {
|
||||
*
|
||||
* @return 微信手机号相关的 API。
|
||||
* @since 1.10.0
|
||||
*/
|
||||
*/s
|
||||
public PhoneNumberApi getPhoneNumberApi() {
|
||||
return phoneNumberApi;
|
||||
}
|
||||
|
||||
public WeixinAccount getContext() {
|
||||
return weixinAccount;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user