提交 e923828e 作者: zhenjie

token添加portType字段

上级 296da31f
...@@ -163,7 +163,7 @@ public class AuthServiceImpl implements AuthService { ...@@ -163,7 +163,7 @@ public class AuthServiceImpl implements AuthService {
map.put(JwtConstant.TOKEN_TYPE, JwtConstant.M_TOKEN); map.put(JwtConstant.TOKEN_TYPE, JwtConstant.M_TOKEN);
String token = JwtUtil.createJwt(map); String token = JwtUtil.createJwt(map);
LoginSuccessDTO loginSuccessDTO = LoginSuccessDTO.builder().token(token).userAccountId(user.getId()).accountNo(user.getAccountNo()).uid(user.getUid()) LoginSuccessDTO loginSuccessDTO = LoginSuccessDTO.builder().token(token).userAccountId(user.getId()).accountNo(user.getAccountNo()).uid(user.getUid())
.userName(user.getUserName()).nickName(user.getNickName()).phoneNum(user.getPhoneNum()).build(); .userName(user.getUserName()).nickName(user.getNickName()).phoneNum(user.getPhoneNum()).portType(user.getPortType()).build();
stringRedisTemplate.opsForValue().set( stringRedisTemplate.opsForValue().set(
token, JSONObject.toJSONString(loginSuccessDTO), token, JSONObject.toJSONString(loginSuccessDTO),
JwtConstant.EXPIRATION, TimeUnit.MILLISECONDS); JwtConstant.EXPIRATION, TimeUnit.MILLISECONDS);
......
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
ua.pass_word, ua.pass_word,
ua.account_status, ua.account_status,
ua.account_type, ua.account_type,
ua.user_name ua.user_name,
ua.port_type
from user_account ua from user_account ua
where ua.is_deleted = 0 where ua.is_deleted = 0
and BINARY ua.account_no = #{accountNo} and BINARY ua.account_no = #{accountNo}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论