提交 8072df0f 编写于 作者: M Mars Liu

typo

上级 3eb9838a
...@@ -47,7 +47,7 @@ public class Login { ...@@ -47,7 +47,7 @@ public class Login {
public Optional<String> login(String key){ public Optional<String> login(String key){
Optional<String> token = Optinal.empty(); Optional<String> token = Optinal.empty();
if(check(key)){ if(check(key)){
token = Optional.of(gen(token)); token = Optional.of(gen(key));
} }
return token; return token;
} }
...@@ -61,7 +61,7 @@ public class Login { ...@@ -61,7 +61,7 @@ public class Login {
public class Login { public class Login {
public Optional<String> login(String key){ public Optional<String> login(String key){
if(check(key)){ if(check(key)){
return Optional.of(gen(token)); return Optional.of(gen(key));
} else { } else {
return Optional.empty(); return Optional.empty();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册