Commit 13f18a6f authored by hezhen's avatar hezhen

123

parent 2a790c7f
...@@ -28,7 +28,7 @@ public class AppAuthServiceImpl implements AuthService { ...@@ -28,7 +28,7 @@ public class AppAuthServiceImpl implements AuthService {
@Override @Override
public String login(JwtAuthenticationRequest authenticationRequest) throws Exception { public String login(JwtAuthenticationRequest authenticationRequest) throws Exception {
AppUserInfo info = userService.AppValidate(authenticationRequest); AppUserInfo info = userService.AppValidate(authenticationRequest);
if (!StringUtils.isEmpty(info.getId())) { if (info!=null&&!StringUtils.isEmpty(info.getId())) {
// 在jwt中加入requestType // 在jwt中加入requestType
return jwtTokenUtil.generateToken(new JWTInfo(info.getUsername(), info.getId() + "", info.getName(), return jwtTokenUtil.generateToken(new JWTInfo(info.getUsername(), info.getId() + "", info.getName(),
RequestTypeConstants.APP)); RequestTypeConstants.APP));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment