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()); } } }