Skip to content

Commit 57e9bea

Browse files
committed
issue #91 添加企业号JS_API的支持
1 parent acb3e7e commit 57e9bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public String getJsapiTicket(boolean forceRefresh) throws WxErrorException {
140140
if (wxCpConfigStorage.isJsapiTicketExpired()) {
141141
synchronized (globalJsapiTicketRefreshLock) {
142142
if (wxCpConfigStorage.isJsapiTicketExpired()) {
143-
String url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi";
143+
String url = "https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket";
144144
String responseContent = execute(new SimpleGetRequestExecutor(), url, null);
145145
JsonElement tmpJsonElement = Streams.parse(new JsonReader(new StringReader(responseContent)));
146146
JsonObject tmpJsonObject = tmpJsonElement.getAsJsonObject();

0 commit comments

Comments
 (0)