|
|
@@ -166,7 +166,7 @@ public class WxOpenComponentServiceImpl implements WxOpenComponentService { |
|
|
|
String componentAccessToken = getComponentAccessToken(false); |
|
|
|
String uriWithComponentAccessToken = uri + (uri.contains("?") ? "&" : "?") + accessTokenKey + "=" + componentAccessToken; |
|
|
|
try { |
|
|
|
log.info("wxopencomponent excute url:"+uriWithComponentAccessToken); |
|
|
|
this.log.info("wxopencomponent excute url:"+uriWithComponentAccessToken); |
|
|
|
return getWxOpenService().get(uriWithComponentAccessToken, null); |
|
|
|
} catch (WxErrorException e) { |
|
|
|
WxError error = e.getError(); |
|
|
@@ -247,6 +247,7 @@ public class WxOpenComponentServiceImpl implements WxOpenComponentService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public String route(final WxOpenXmlMessage wxMessage) throws WxErrorException { |
|
|
|
log.info("wxopencomponent route :"+wxMessage); |
|
|
|
if (wxMessage == null) { |
|
|
|
throw new NullPointerException("message is empty"); |
|
|
|
} |
|
|
|