From d72cdefc313e6000c5f7f0ad37686fb63a7fbdbe Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 10 七月 2024 16:53:04 +0800
Subject: [PATCH] 提交

---
 server/service/src/main/java/com/doumee/service/business/InitService.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/server/service/src/main/java/com/doumee/service/business/InitService.java b/server/service/src/main/java/com/doumee/service/business/InitService.java
index 0ca6efd..b29b458 100644
--- a/server/service/src/main/java/com/doumee/service/business/InitService.java
+++ b/server/service/src/main/java/com/doumee/service/business/InitService.java
@@ -1,5 +1,6 @@
 package com.doumee.service.business;
 
+import com.doumee.biz.system.SystemDictDataBiz;
 import com.doumee.core.utils.Constants;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Lazy;
@@ -23,12 +24,20 @@
     @Autowired
     @Lazy
     private ShopService shopService;
+    @Autowired
+    @Lazy
+    private SystemDictDataBiz  systemDictDataBiz;
 
     @PostConstruct
     public void clearImporting(){
         redisTemplate.delete(Constants.RedisKeys.IMPORTING_SHOP);
     }
     @PostConstruct
+    public void initIamAppIdAndAppKey(){
+        redisTemplate.opsForValue().set(Constants.RedisKeys.IAM_APPKEY,systemDictDataBiz.queryByCode(Constants.ZBOM,Constants.ZBOM_IAM_APPKEY).getCode());
+        redisTemplate.opsForValue().set(Constants.RedisKeys.IAM_APPID,systemDictDataBiz.queryByCode(Constants.ZBOM,Constants.ZBOM_IAM_APPID).getCode());
+    }
+    @PostConstruct
     public void cacheShopTree(){
 //        redisTemplate.opsForValue().set(Constants.RedisKeys.SHOP_TREE,shopService.shopTree(null));
     }

--
Gitblit v1.9.3