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

Merge branch 'dev-removeUser-0909' into 'release'

fix: 修改接口为异步

See merge request !78
流水线 #37944 已取消 于阶段
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册