|
|
@ -120,7 +120,7 @@ public class UserController {
|
|
|
|
public Result<UserRespDTO> touristLogin() {
|
|
|
|
public Result<UserRespDTO> touristLogin() {
|
|
|
|
UserRespDTO userRespDTO=new UserRespDTO();
|
|
|
|
UserRespDTO userRespDTO=new UserRespDTO();
|
|
|
|
userRespDTO.setId(String.valueOf(idWorker.nextId()));
|
|
|
|
userRespDTO.setId(String.valueOf(idWorker.nextId()));
|
|
|
|
userRespDTO.setNickname("游客"+NickNameUtil.getRandomNickName());
|
|
|
|
userRespDTO.setNickname("游客-"+NickNameUtil.getRandomNickName());
|
|
|
|
String token = jwtUtil.createJWT(userRespDTO.getId(),"tourist","tourist");
|
|
|
|
String token = jwtUtil.createJWT(userRespDTO.getId(),"tourist","tourist");
|
|
|
|
userRespDTO.setToken(token);
|
|
|
|
userRespDTO.setToken(token);
|
|
|
|
return Result.success(userRespDTO);
|
|
|
|
return Result.success(userRespDTO);
|
|
|
|