Browse Source

手机号登录

Bridge 3 years ago
parent
commit
a7d30d81de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/cn/fastfun/service/impl/UtilServiceImpl.java

+ 1 - 1
src/main/java/cn/fastfun/service/impl/UtilServiceImpl.java

@@ -112,7 +112,7 @@ public class UtilServiceImpl implements UtilService {
             loginFailedTime.put(userName, System.currentTimeMillis() / 1000);
             throw new ApiRuntimeException(501, "账号或密码错误!");
         }
-        t = !optional.isPresent()?optional.get(): optional2.get();
+        t = optional.isPresent()?optional.get(): optional2.get();
         if (null != t && !StringUtils.isEmpty(t.getId())) {
             // 生成jwt token
             Map<String, Object> map = new HashMap<>();