issue #91 添加企业号JS_API的支持

This commit is contained in:
Daniel Qian
2015-02-04 17:09:15 +08:00
parent acb3e7e01b
commit 57e9beaae0

View File

@@ -140,7 +140,7 @@ public class WxCpServiceImpl implements WxCpService {
if (wxCpConfigStorage.isJsapiTicketExpired()) {
synchronized (globalJsapiTicketRefreshLock) {
if (wxCpConfigStorage.isJsapiTicketExpired()) {
String url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi";
String url = "https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket";
String responseContent = execute(new SimpleGetRequestExecutor(), url, null);
JsonElement tmpJsonElement = Streams.parse(new JsonReader(new StringReader(responseContent)));
JsonObject tmpJsonObject = tmpJsonElement.getAsJsonObject();