1
0
mirror of synced 2025-12-12 17:54:20 +08:00

#1106 修复获取公众号 jsapi_ticket 请求 Url 拼接问题

This commit is contained in:
ArBing
2019-07-14 14:20:27 +08:00
committed by Binary Wang
parent 663c45c77e
commit 09b726fd0b

View File

@@ -97,7 +97,7 @@ public abstract class BaseWxMpServiceImpl<H, P> implements WxMpService, RequestH
if (this.getWxMpConfigStorage().isTicketExpired(type)) {
String responseContent = execute(SimpleGetRequestExecutor.create(this),
GET_TICKET_URL + type.getCode(), null);
GET_TICKET_URL.getUrl(this.getWxMpConfigStorage()) + type.getCode(), null);
JsonObject tmpJsonObject = JSON_PARSER.parse(responseContent).getAsJsonObject();
String jsapiTicket = tmpJsonObject.get("ticket").getAsString();
int expiresInSeconds = tmpJsonObject.get("expires_in").getAsInt();