|
@@ -2,6 +2,7 @@ package com.fdkankan.manage.service.impl;
|
|
|
|
|
|
import cn.dev33.satoken.stp.SaLoginConfig;
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.common.util.Base64Converter;
|
|
@@ -36,7 +37,7 @@ public class ManageService {
|
|
|
.setExtra("userName",result.getUserName())
|
|
|
.setExtra("nickName",result.getNickName()));
|
|
|
result.setToken(StpUtil.getTokenValue());
|
|
|
- redisUtil.set(String.format(RedisKey.TOKEN_V3 ,result.getToken()), "1", 216000);
|
|
|
+ redisUtil.set(String.format(RedisKey.TOKEN_V3 ,result.getToken()), JSONObject.toJSONString(result), 216000);
|
|
|
return result;
|
|
|
}
|
|
|
|