Browse Source

修复多点登录拦截失效问题

main
QM303176530 4 years ago
parent
commit
a4e58d3db5
  1. 2
      server/api/v1/sys_user.go

2
server/api/v1/sys_user.go

@ -130,7 +130,7 @@ func tokenNext(c *gin.Context, user model.SysUser) {
response.FailWithMessage("jwt作废失败", c)
return
}
if err := service.SetRedisJWT(jwtStr, user.Username); err != nil {
if err := service.SetRedisJWT(token, user.Username); err != nil {
response.FailWithMessage("设置登录状态失败", c)
return
}

Loading…
Cancel
Save