From 4c80d2017a3b88b9ad55f28c3b87fd96eb67bcb2 Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期四, 29 九月 2022 09:40:51 +0800 Subject: [PATCH] Merge branch 'sanshuohuitang_dev' into huacheng_test --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/util/WxDataUtil.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/util/WxDataUtil.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/util/WxDataUtil.java index 7a7882e..14ac068 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/util/WxDataUtil.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/util/WxDataUtil.java @@ -16,7 +16,7 @@ String accessToken; { try { - accessToken = wxXCXTempSend.getXQAppAccessToken(); + accessToken = wxXCXTempSend.getAccessToken(); } catch (Exception e) { e.printStackTrace(); } @@ -46,8 +46,8 @@ String dayUrl="https://api.weixin.qq.com/datacube/getweanalysisappidmonthlyvisittrend?access_token="+accessToken; WxRequestEntity wxRequestEntity=new WxRequestEntity(); wxRequestEntity.setAccess_token(accessToken); - wxRequestEntity.setBegin_date(DateUtil.format(DateUtil.offsetMonth(DateUtils.getFirstDayOfMonth(),-1),"yyyyMMdd")); - wxRequestEntity.setEnd_date(DateUtil.format(DateUtil.offsetMonth(DateUtils.getLastDayOfMonth(),-1),"yyyyMMdd")); + wxRequestEntity.setBegin_date(DateUtils.getOldMonthFirstDay()); + wxRequestEntity.setEnd_date(DateUtils.getOldMonthLastDay()); String result=HttpClientUtil.httpPost(dayUrl, JSONObject.toJSONString(wxRequestEntity)); if(StringUtils.isNotEmpty(result)&result.contains("session_cnt")){ JSONArray resultEntity= (JSONArray) JSONObject.parseObject(result).get("list"); -- Gitblit v1.7.1