ruoyi-common/src/main/java/com/ruoyi/common/utils/QiChaChaUtil.java
@@ -18,7 +18,9 @@ @Autowired private RedisCache redisCache; private static QiChaChaUtil qiChaChaUtil; @PostConstruct public void init() { @@ -59,6 +61,7 @@ HttpResponse execute = get.execute(); String body = execute.body(); JSONObject jsonObject = JSONObject.parseObject(body); jsonObject.put("query_type",0); if("200".equals(jsonObject.get("Status"))){ String string = jsonObject.toString(); getInstance().redisCache.setCacheObject("qichacha_"+companyName,string,24, TimeUnit.HOURS);