This commit is contained in:
Daniel Qian
2015-08-03 17:30:28 +08:00
parent 0acae5783a
commit cf9ccbc54d
2 changed files with 12 additions and 4 deletions

View File

@@ -551,6 +551,9 @@ public class WxCpServiceImpl implements WxCpService {
}
protected <T, E> T executeInternal(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException {
if (uri.indexOf("access_token=") != -1) {
throw new IllegalArgumentException("uri参数中不允许有access_token: " + uri);
}
String accessToken = getAccessToken(false);
String uriWithAccessToken = uri;