|
@@ -97,8 +97,11 @@ public class SysLoginService {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public void phoneScanLogin(LoginBody form) {
|
|
public void phoneScanLogin(LoginBody form) {
|
|
- LoginUser loginUser = redisService.getCacheObject(form.getUuid());
|
|
|
|
- if (loginUser == null) {
|
|
|
|
|
|
+ if(redisService.getCacheObject(form.getUuid()) == null){
|
|
|
|
+ throw new BaseException("登录超时,请重新登录");
|
|
|
|
+ }
|
|
|
|
+ String cacheObject = redisService.getCacheObject(form.getUuid()).toString();
|
|
|
|
+ if (StringUtils.isBlank(cacheObject)) {
|
|
throw new BaseException("登录超时,请重新登录");
|
|
throw new BaseException("登录超时,请重新登录");
|
|
}
|
|
}
|
|
String phone = form.getPhone();
|
|
String phone = form.getPhone();
|