临时存储

This commit is contained in:
董宏宇
2021-02-07 11:34:00 +08:00
parent 6a9fcbd28c
commit 1075096823
2 changed files with 2 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ public class SocketMsgUtils implements IMogoCloudSocketMsgAckListener {
private static final String TAG = "SocketMsgUtils";
private static final String appId = "liveStream";
private static final int msgType = 1973;
private static final int headerType = 1973;
private static volatile SocketMsgUtils sInstance;
@@ -56,7 +56,7 @@ public class SocketMsgUtils implements IMogoCloudSocketMsgAckListener {
* @param body 数据包
*/
public void uploadCamInfo(MsgBody body) {
mSocketManager.sendMsg(appId, msgType, body, this);
mSocketManager.sendMsg(appId, headerType, body, this);
}
/**

View File

@@ -1,7 +1,5 @@
package com.mogo.cloud.live.socket;
import com.google.protobuf.ByteString;
import com.zhidao.ptech.connsvr.protocol.MogoConnsvr;
import com.zhidao.ptech.shadow.server.protocol.DeviceInfo;
import com.zhidao.utils.common.TelephoneUtil;
@@ -20,12 +18,5 @@ public class SocketRequestUtils {
return data;
}
private static byte[] buildSocketPayload(byte[] payload, int payloadType) {
MogoConnsvr.Payload payloadData = MogoConnsvr.Payload.newBuilder()
.setMsgType(payloadType)
.setPayload(ByteString.copyFrom(payload)).build();
return payloadData.toByteArray();
}
}