fix bug of convert byte[]

This commit is contained in:
zhongchao
2021-02-20 11:14:54 +08:00
parent 391e514819
commit 7fff783bc2
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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