codeLogin输出token

V0.5.x
七步才子 2022-05-21 19:31:02 +08:00
parent 7f3d1fb4da
commit beeb1014a9
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public class AuthClientController {
UserInfo userInfo = userInfoCache.getUserInfo(uid);
data.put("name", userInfo.getNickName());
data.put("uid", uid);
data.put("access_token", access_token);
// 返回相关参数
StpUtil.login(uid, SaLoginConfig.setToken(access_token));
return SaResult.data(data);