| | |
| | | if (redisService.getCacheObject(CacheConstants.IS_HOLIDAY+now) != null && ("1").equals(redisService.getCacheObject(CacheConstants.IS_HOLIDAY+now).toString())) { |
| | | return true; |
| | | } |
| | | String result = HttpUtil.get("https://publicapi.xiaoai.me/holiday/day?date=" +now); |
| | | String result = HttpUtils.sendGet("https://publicapi.xiaoai.me/holiday/day?date=" + now); |
| | | // String result = HttpUtil.get("https://publicapi.xiaoai.me/holiday/day?date=" +now); |
| | | JSONObject jsonObject = JSONObject.parseObject(result); |
| | | Object data = jsonObject.get("data"); |
| | | JSONArray parse = JSONArray.parse(data.toString()); |