From 9bb30f4c537a66171bd770833f65ccd4595b980c Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 3 Jun 2021 20:57:20 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/cweb/controller/WechatController.java | 3 --- .../src/main/java/com/hai/schedule/SynchronizeCNPC.java | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/hai-cweb/src/main/java/com/cweb/controller/WechatController.java b/hai-cweb/src/main/java/com/cweb/controller/WechatController.java index dbb373cb..ed8f8b1a 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/WechatController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/WechatController.java @@ -272,7 +272,6 @@ public class WechatController { HttpServletRequest request, HttpServletResponse response) { try { - System.out.println("--------------获取access_token-----------------------"); // 获取access_token Map params = new HashMap<>(); params.put("appid", SysConst.getSysConfig().getWxH5AppId()); @@ -280,8 +279,6 @@ public class WechatController { params.put("code", code); params.put("grant_type", "authorization_code"); JSONObject jsonObject = HttpsUtils.doGet("https://api.weixin.qq.com/sns/oauth2/access_token", params); - System.out.println(jsonObject.toJSONString()); - System.out.println("-----------------获取access_token--------------------"); String accessToken = jsonObject.getString("access_token"); String openid = jsonObject.getString("openid"); if (StringUtils.isBlank(accessToken) || StringUtils.isBlank(openid)) { diff --git a/hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java b/hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java index acb28ed2..83bc9356 100644 --- a/hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java +++ b/hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java @@ -55,7 +55,7 @@ public class SynchronizeCNPC { String token = data.getString("token"); Calendar instance = Calendar.getInstance(); - instance.add(Calendar.MINUTE, -10); + instance.add(Calendar.MINUTE, -15); Map bodyMap = new HashMap<>(); bodyMap.put("appId", config.getAppId()); @@ -89,7 +89,6 @@ public class SynchronizeCNPC { } } } - log.error(object.toJSONString()); } } }