From 8932133e2ee2e5708e3506bee3d01d59bff5f1d2 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期日, 12 一月 2025 11:30:52 +0800
Subject: [PATCH] bug
---
server/service/src/main/java/com/doumee/biz/system/impl/SystemDictBizImpl.java | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/server/service/src/main/java/com/doumee/biz/system/impl/SystemDictBizImpl.java b/server/service/src/main/java/com/doumee/biz/system/impl/SystemDictBizImpl.java
index 6f33422..13f1d37 100644
--- a/server/service/src/main/java/com/doumee/biz/system/impl/SystemDictBizImpl.java
+++ b/server/service/src/main/java/com/doumee/biz/system/impl/SystemDictBizImpl.java
@@ -1,20 +1,30 @@
package com.doumee.biz.system.impl;
import com.doumee.biz.system.SystemDictBiz;
+import com.doumee.config.shiro.ShiroSessionManager;
import com.doumee.core.constants.ResponseStatus;
import com.doumee.core.exception.BusinessException;
import com.doumee.dao.system.model.SystemDict;
import com.doumee.service.system.SystemDictService;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
+
+import javax.annotation.PostConstruct;
@Service
public class SystemDictBizImpl implements SystemDictBiz {
-
+ @Value("${cookiename}")
+ private String authToken;
@Autowired
private SystemDictService systemDictService;
@Override
+ @PostConstruct
+ public void initAuthToken( ) {
+ ShiroSessionManager.AUTH_TOKEN = authToken;
+ }
+ @Override
public Integer create(SystemDict systemDict) {
SystemDict queryDto = new SystemDict();
queryDto.setCode(systemDict.getCode());
--
Gitblit v1.9.3