fix bug of convert byte[]
This commit is contained in:
@@ -120,7 +120,7 @@ public class SocketManager implements IMogoCloudSocketManager, Callback {
|
||||
@Override
|
||||
public void sendMsg(String appId, int headerType, MsgBody body, IMogoCloudSocketMsgAckListener listener) {
|
||||
Logger.d(TAG, "sendMsg msgId : " + body.getMsgId());
|
||||
final byte[] pb = convertToPBBytes(body.getMsgType(), (byte[])body.getContent());
|
||||
final byte[] pb = convertToPBBytes(body.getMsgType(), body.getContent().toString().getBytes());
|
||||
SocketClient.getInstance().sendData(appId, MogoCommon.Product.mogoBussiness.getNumber(), pb, headerType, true, body.getMsgId());
|
||||
mAckListeners.put(body.getMsgId(), listener);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ MOGO_UTILS_VERSION=1.0.20-SNAPSHOT
|
||||
MOGO_NETWORK_VERSION=1.0.20-SNAPSHOT
|
||||
MOGO_HTTPDNS_VERSION=1.0.20-SNAPSHOT
|
||||
MOGO_PASSPORT_VERSION=1.0.20-SNAPSHOT
|
||||
MOGO_SOCKET_VERSION=1.0.20-SNAPSHOT
|
||||
MOGO_SOCKET_VERSION=1.0.21-SNAPSHOT
|
||||
MOGO_REALTIME_VERSION=1.0.21-SNAPSHOT
|
||||
MOGO_TANLU_VERSION=1.0.20-SNAPSHOT
|
||||
MOGO_LIVE_VERSION=1.0.20-SNAPSHOT
|
||||
|
||||
Reference in New Issue
Block a user