changed the getSn and visual func
This commit is contained in:
@@ -6,6 +6,7 @@ import android.util.Log;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.mogo.cloud.passport.MoGoAiCloudClientConfig;
|
||||
import com.mogo.commons.network.Utils;
|
||||
import com.mogo.map.location.MogoLocation;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
@@ -139,7 +140,7 @@ public class WebSocketManager implements IMogoWebSocketManager, ISocketMsgSettin
|
||||
WebSocketData webSocketData = new WebSocketData();
|
||||
webSocketData.setSeq(computeSendMsgTime());
|
||||
webSocketData.setMsgType(listener.getUpLinkType().getMsgType());
|
||||
webSocketData.setSn(Utils.getSn());
|
||||
webSocketData.setSn(MoGoAiCloudClientConfig.getInstance().getSn());
|
||||
webSocketData.setData(GsonUtil.jsonFromObject(body));
|
||||
MogoLocation lastKnown = MogoApisHandler.getInstance().getApis().getMapServiceApi().getSingletonLocationClient(context).getLastKnowLocation();
|
||||
if (lastKnown != null&&!lastKnown.getCityCode().isEmpty()) {
|
||||
@@ -240,7 +241,7 @@ public class WebSocketManager implements IMogoWebSocketManager, ISocketMsgSettin
|
||||
public String getHandShakeMsg() {
|
||||
WebSocketShakeHandsData webSocketShakeHandData = new WebSocketShakeHandsData(
|
||||
System.currentTimeMillis(),
|
||||
Utils.getSn(),
|
||||
MoGoAiCloudClientConfig.getInstance().getSn(),
|
||||
true
|
||||
);
|
||||
return GsonUtil.jsonFromObject(webSocketShakeHandData);
|
||||
|
||||
Reference in New Issue
Block a user