opt cityCode
This commit is contained in:
@@ -142,8 +142,10 @@ public class WebSocketManager implements IMogoWebSocketManager, ISocketMsgSettin
|
||||
webSocketData.setSn(Utils.getSn());
|
||||
webSocketData.setData(GsonUtil.jsonFromObject(body));
|
||||
MogoLocation lastKnown = MogoApisHandler.getInstance().getApis().getMapServiceApi().getSingletonLocationClient(context).getLastKnowLocation();
|
||||
if (lastKnown != null) {
|
||||
if (lastKnown != null&&!lastKnown.getCityCode().isEmpty()) {
|
||||
webSocketData.setCityCode(lastKnown.getCityCode());
|
||||
}else{
|
||||
webSocketData.setCityCode(null);
|
||||
}
|
||||
String msg = GsonUtil.jsonFromObject(webSocketData);
|
||||
Logger.d(TAG,"sendMsg : " + msg);
|
||||
|
||||
Reference in New Issue
Block a user