From 14c10d5021513463109aa800aeb3e8dbf479b05c Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期四, 28 八月 2025 10:58:11 +0800 Subject: [PATCH] update --- ruoyi-common/src/main/java/com/ruoyi/common/utils/QiChaChaUtil.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/QiChaChaUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/QiChaChaUtil.java index 81ef6c1..74924e1 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/QiChaChaUtil.java +++ b/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); @@ -68,4 +71,10 @@ } + public static void main(String[] args) { + Object 成都农夫明道餐饮管理有限责任公司 = getQiChaChaCompanyExceptionCheck("成都易睿博科技有限公司"); + System.out.println(成都农夫明道餐饮管理有限责任公司); + } + + } -- Gitblit v1.7.1