|
|
@@ -4,6 +4,7 @@ package me.chanjar.weixin.cp.api.impl.apache; |
|
|
|
import me.chanjar.weixin.common.bean.WxAccessToken; |
|
|
|
import me.chanjar.weixin.common.bean.result.WxError; |
|
|
|
import me.chanjar.weixin.common.exception.WxErrorException; |
|
|
|
import me.chanjar.weixin.common.util.http.HttpType; |
|
|
|
import me.chanjar.weixin.common.util.http.apache.ApacheHttpClientBuilder; |
|
|
|
import me.chanjar.weixin.common.util.http.apache.DefaultApacheHttpClientBuilder; |
|
|
|
import me.chanjar.weixin.cp.api.WxCpConfigStorage; |
|
|
@@ -32,6 +33,11 @@ public class WxCpServiceImpl extends AbstractWxCpService<CloseableHttpClient, Ht |
|
|
|
return httpProxy; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public HttpType getRequestType() { |
|
|
|
return HttpType.apacheHttp; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String getAccessToken(boolean forceRefresh) throws WxErrorException { |
|
|
|
if (forceRefresh) { |
|
|
|