| | |
| | | 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"); |