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