codeLogin输出token
parent
7f3d1fb4da
commit
beeb1014a9
|
@ -77,7 +77,7 @@ public class AuthClientController {
|
||||||
UserInfo userInfo = userInfoCache.getUserInfo(uid);
|
UserInfo userInfo = userInfoCache.getUserInfo(uid);
|
||||||
data.put("name", userInfo.getNickName());
|
data.put("name", userInfo.getNickName());
|
||||||
data.put("uid", uid);
|
data.put("uid", uid);
|
||||||
|
data.put("access_token", access_token);
|
||||||
// 返回相关参数
|
// 返回相关参数
|
||||||
StpUtil.login(uid, SaLoginConfig.setToken(access_token));
|
StpUtil.login(uid, SaLoginConfig.setToken(access_token));
|
||||||
return SaResult.data(data);
|
return SaResult.data(data);
|
||||||
|
|
Loading…
Reference in New Issue