mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-09-20 10:38:13 +08:00
issue #91 添加企业号JS_API的支持
This commit is contained in:
@@ -140,7 +140,7 @@ public class WxCpServiceImpl implements WxCpService {
|
|||||||
if (wxCpConfigStorage.isJsapiTicketExpired()) {
|
if (wxCpConfigStorage.isJsapiTicketExpired()) {
|
||||||
synchronized (globalJsapiTicketRefreshLock) {
|
synchronized (globalJsapiTicketRefreshLock) {
|
||||||
if (wxCpConfigStorage.isJsapiTicketExpired()) {
|
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);
|
String responseContent = execute(new SimpleGetRequestExecutor(), url, null);
|
||||||
JsonElement tmpJsonElement = Streams.parse(new JsonReader(new StringReader(responseContent)));
|
JsonElement tmpJsonElement = Streams.parse(new JsonReader(new StringReader(responseContent)));
|
||||||
JsonObject tmpJsonObject = tmpJsonElement.getAsJsonObject();
|
JsonObject tmpJsonObject = tmpJsonElement.getAsJsonObject();
|
||||||
|
Reference in New Issue
Block a user