| | |
| | | MyLog.i(PlatFormConstant.HTTPTAG,str) |
| | | jsonObject1 = JSONObject(str) |
| | | val result = jsonObject1!!.getBoolean("result") |
| | | if (result) { |
| | | var mapInfoHead: MapInfoHead = MapInfoHead("","", BaseDataUIBean.TYPE_.car,"","") |
| | | if (result) { |
| | | |
| | | when(type){ |
| | | "road" ->{ |
| | |
| | | |
| | | }else{ |
| | | MyLog.i(PlatFormConstant.HTTPTAG,"返回失败,则发送用户已经选择的道路文件") |
| | | mapInfoHead.version = "" |
| | | mapInfoHead.str = "获取道路地图失败" |
| | | sendRoadMapInfo() |
| | | }} |
| | | "yard" ->{ |
| | |
| | | }) |
| | | } |
| | | }else{ |
| | | mapInfoHead.version = "" |
| | | mapInfoHead.str = "获取场地地图失败" |
| | | MyLog.i(PlatFormConstant.HTTPTAG,"返回失败,则发送用户已经选择的场地文件") |
| | | sendMapInfo() |
| | | } |
| | |
| | | |
| | | } |
| | | }else{ |
| | | mapInfoHead.version = "" |
| | | mapInfoHead.str = "获取车辆模型失败" |
| | | MyLog.i(PlatFormConstant.HTTPTAG,"返回失败,则发送用户已经选择的车辆模型文件") |
| | | sendVehicleInfo() |
| | | } |
| | |
| | | ExamPlatformData.getInstance().setMapHeadInfo(mapInfoHead) |
| | | } else { |
| | | if (str.contains("car")){ |
| | | mapInfoHead.type= BaseDataUIBean.TYPE_.car |
| | | mapInfoHead.version = "" |
| | | mapInfoHead.str = "从平台获取车辆模型失败" |
| | | ExamPlatformData.getInstance().setMapHeadInfo(mapInfoHead) |
| | | sendVehicleInfo() |
| | | } |
| | | if (str.contains("yard")){ |
| | | mapInfoHead.type= BaseDataUIBean.TYPE_.yard |
| | | mapInfoHead.version = "" |
| | | mapInfoHead.str = "从平台获取场地地图失败" |
| | | ExamPlatformData.getInstance().setMapHeadInfo(mapInfoHead) |
| | | sendMapInfo() |
| | | } |
| | | if (str.contains("road")){ |
| | | |
| | | |
| | | mapInfoHead.type= BaseDataUIBean.TYPE_.road |
| | | mapInfoHead.version = "" |
| | | mapInfoHead.str = "从平台获取道路地图失败" |
| | | ExamPlatformData.getInstance().setMapHeadInfo(mapInfoHead) |
| | | sendRoadMapInfo() |
| | | } |
| | | |