提交 ecaae42d 编写于 作者: minghao.wu's avatar minghao.wu

fix: 修改接口为异步

上级 e1814163
流水线 #37943 已取消 于阶段
...@@ -99,6 +99,7 @@ public class TokenServiceImpl implements TokenService { ...@@ -99,6 +99,7 @@ public class TokenServiceImpl implements TokenService {
@Override @Override
public void removeToken(Long timestamp) { public void removeToken(Long timestamp) {
new Thread(() -> {
try { try {
Date lastLoginTime = new Date(timestamp); Date lastLoginTime = new Date(timestamp);
for (Integer fromDoctorId = 0; fromDoctorId < 1000412091; fromDoctorId += 10000) { for (Integer fromDoctorId = 0; fromDoctorId < 1000412091; fromDoctorId += 10000) {
...@@ -113,6 +114,7 @@ public class TokenServiceImpl implements TokenService { ...@@ -113,6 +114,7 @@ public class TokenServiceImpl implements TokenService {
} catch (Exception ex) { } catch (Exception ex) {
// ingnore // ingnore
} }
});
} }
private void removeTokenByDoctorIdList(List<Integer> doctorIdList) throws Exception { private void removeTokenByDoctorIdList(List<Integer> doctorIdList) throws Exception {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册