liujie
6 天以前 dd2a17ce4ebdfcaecc971f17c0f4d648ec5c2095
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);