Browse Source

REPORT-106402 websocket cbb ---报表适配

【问题原因】修改包名
【改动思路】rt
newui
Leo.Qin 1 year ago
parent
commit
79e211ab90
  1. 6
      designer-base/src/main/java/com/fr/design/login/socketio/LoginAuthServer.java

6
designer-base/src/main/java/com/fr/design/login/socketio/LoginAuthServer.java

@ -3,10 +3,10 @@ package com.fr.design.login.socketio;
import com.fr.cbb.websocket.core.WebSocketAckRequest; import com.fr.cbb.websocket.core.WebSocketAckRequest;
import com.fr.cbb.websocket.core.WebSocketClientProvider; import com.fr.cbb.websocket.core.WebSocketClientProvider;
import com.fr.cbb.websocket.core.WebSocketConfiguration; import com.fr.cbb.websocket.core.WebSocketConfiguration;
import com.fr.cbb.websocket.core.WebSocketServerFactory;
import com.fr.cbb.websocket.core.WebSocketServerProvider; import com.fr.cbb.websocket.core.WebSocketServerProvider;
import com.fr.cbb.websocket.holder.EventHolder; import com.fr.cbb.websocket.holder.EventHolder;
import com.fr.cbb.websocket.listener.AbstractDataListener; import com.fr.cbb.websocket.listener.SocketDataListener;
import com.fr.cbb.websocket.core.WebSocketServerFactory;
import com.fr.concurrent.NamedThreadFactory; import com.fr.concurrent.NamedThreadFactory;
import com.fr.design.DesignerEnvManager; import com.fr.design.DesignerEnvManager;
import com.fr.design.login.DesignerLoginType; import com.fr.design.login.DesignerLoginType;
@ -89,7 +89,7 @@ public class LoginAuthServer {
} }
private void initEventListener() { private void initEventListener() {
server.addEventListener(EventHolder.build("bbsAccountLogin", BBSAccountLogin.class, new AbstractDataListener<BBSAccountLogin>() { server.addEventListener(EventHolder.build("bbsAccountLogin", BBSAccountLogin.class, new SocketDataListener<BBSAccountLogin>() {
@Override @Override
public void onData(WebSocketClientProvider client, BBSAccountLogin data, WebSocketAckRequest ackRequest) throws Exception { public void onData(WebSocketClientProvider client, BBSAccountLogin data, WebSocketAckRequest ackRequest) throws Exception {
// 保存登录信息到.FineReport100配置中 // 保存登录信息到.FineReport100配置中

Loading…
Cancel
Save