|
@@ -63,11 +63,13 @@ public class LogService {
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
-// CompletableFuture<Void> cf = CompletableFuture.supplyAsync(()->{
|
|
|
|
-// WebsocketEndPoint webs = (WebsocketEndPoint) UtilTools.getBean("websocketEndPoint");
|
|
|
|
-// webs.sendMessageToUser(String.valueOf(pid),log);
|
|
|
|
-// return null;
|
|
|
|
-// });
|
|
|
|
|
|
+ if(log.indexOf("求解")>0){
|
|
|
|
+ CompletableFuture<Void> cf = CompletableFuture.supplyAsync(()->{
|
|
|
|
+ WebsocketEndPoint webs = (WebsocketEndPoint) UtilTools.getBean("websocketEndPoint");
|
|
|
|
+ webs.sendMessageToUser(String.valueOf(pid),log);
|
|
|
|
+ return null;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 文件内容追加
|
|
* 文件内容追加
|