|
|
|
@ -83,7 +83,7 @@ public class UserController {
|
|
|
|
|
public ResultVO appLogin(@PathVariable String mobile,@PathVariable String checkcode){
|
|
|
|
|
// 得到缓存中的验证码
|
|
|
|
|
String checkcodeRedis = (String)redisTemplate.opsForValue().get("checkcode_"+mobile);
|
|
|
|
|
if (checkcodeRedis.isEmpty()){
|
|
|
|
|
if (null==checkcodeRedis||checkcodeRedis.isEmpty()){
|
|
|
|
|
return new ResultVO(false,StatusCode.ERROR,"请先获取手机验证码");
|
|
|
|
|
}
|
|
|
|
|
if (!checkcodeRedis.equals(checkcode)) {
|
|
|
|
@ -93,7 +93,7 @@ public class UserController {
|
|
|
|
|
return ResultVO.success(userVO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="3.游客模式返回token",notes="token中的subject和roles均为tourist")
|
|
|
|
|
@ApiOperation(value="3.游客登录返回token",notes="token中的subject和roles均为tourist")
|
|
|
|
|
@RequestMapping(value = "/touristLogin",method = RequestMethod.GET)
|
|
|
|
|
public ResultVO<UserVO> touristLogin(){
|
|
|
|
|
UserVO userVO=userService.touristLogin();
|
|
|
|
|