add MoGoAiCloud sdk --> socket passport replace origin logic
This commit is contained in:
@@ -33,6 +33,14 @@ public interface IMogoWebSocketManager<T> extends IProvider {
|
||||
* @param body 消息体
|
||||
* @param listener 回执监听
|
||||
*/
|
||||
void sendMsg( T body, IMogoOnWebSocketMessageListener listener );
|
||||
default void sendMsg( T body, IMogoOnWebSocketMessageListener listener ){
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 停止socket服务
|
||||
*/
|
||||
default void stop(){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ public class MsgBody {
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
private Object mContent;
|
||||
private byte[] mContent;
|
||||
|
||||
public MsgBody msgType( int msgType ) {
|
||||
this.mMsgType = msgType;
|
||||
@@ -48,7 +48,7 @@ public class MsgBody {
|
||||
return this;
|
||||
}
|
||||
|
||||
public MsgBody content( Object object ) {
|
||||
public MsgBody content( byte[] object ) {
|
||||
this.mContent = object;
|
||||
return this;
|
||||
}
|
||||
@@ -65,7 +65,7 @@ public class MsgBody {
|
||||
return mMsgId;
|
||||
}
|
||||
|
||||
public Object getContent() {
|
||||
public byte[] getContent() {
|
||||
return mContent;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,6 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.mogocommons
|
||||
implementation rootProject.ext.dependencies.mogoserviceapi
|
||||
implementation rootProject.ext.dependencies.modulecommon
|
||||
implementation rootProject.ext.dependencies.modulecommon
|
||||
} else {
|
||||
api project(":libraries:mogo-map")
|
||||
implementation project(":libraries:mogo-map-api")
|
||||
|
||||
Reference in New Issue
Block a user