Skip to content

Commit 09b726f

Browse files
arbingbinarywang
authored andcommitted
#1106 修复获取公众号 jsapi_ticket 请求 Url 拼接问题
1 parent 663c45c commit 09b726f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public String getTicket(TicketType type, boolean forceRefresh) throws WxErrorExc
9797

9898
if (this.getWxMpConfigStorage().isTicketExpired(type)) {
9999
String responseContent = execute(SimpleGetRequestExecutor.create(this),
100-
GET_TICKET_URL + type.getCode(), null);
100+
GET_TICKET_URL.getUrl(this.getWxMpConfigStorage()) + type.getCode(), null);
101101
JsonObject tmpJsonObject = JSON_PARSER.parse(responseContent).getAsJsonObject();
102102
String jsapiTicket = tmpJsonObject.get("ticket").getAsString();
103103
int expiresInSeconds = tmpJsonObject.get("expires_in").getAsInt();

0 commit comments

Comments
 (0)