|
@@ -57,7 +57,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
String phone = paramsMap.get("phone");
|
|
|
String code = paramsMap.get("code");
|
|
|
//是否存在
|
|
|
- /* Boolean aBoolean = redisTemplate.hasKey("xumu:" + phone);
|
|
|
+ Boolean aBoolean = redisTemplate.hasKey("xumu:" + phone);
|
|
|
if (!aBoolean) {
|
|
|
return new Result(10001, "该手机号未发送验证码或验证码过期!!!", false);
|
|
|
}
|
|
@@ -66,7 +66,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
if (!code.equals(s)) {
|
|
|
return new Result(10001, "验证码错误!!", false);
|
|
|
} else {
|
|
|
- System.out.println("登录成功");*/
|
|
|
+ System.out.println("登录成功");
|
|
|
|
|
|
QueryWrapper<SysUser> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("phone", phone);
|
|
@@ -90,7 +90,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
return new Result(10002, "该账号审核未通过!", false);
|
|
|
}
|
|
|
}
|
|
|
-// }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|