| | |
| | | import safeluck.drive.evaluation.app |
| | | import safeluck.drive.evaluation.bean.* |
| | | import safeluck.drive.evaluation.bean.SimulateNightBean.QuestionBean |
| | | import safeluck.drive.evaluation.httpmodule.HttpCarRespBean |
| | | import safeluck.drive.evaluation.httpmodule.HttpRequetBean |
| | | import safeluck.drive.evaluation.httpmodule.HttpRoadMapRsp |
| | | import safeluck.drive.evaluation.httpmodule.HttpYardRsp |
| | | import safeluck.drive.evaluation.httpmodule.* |
| | | import safeluck.drive.evaluation.httpmodule.RetrofitCreator.Companion.getRestService |
| | | import safeluck.drive.evaluation.platformMessage.PlatFormConstant |
| | | import java.io.File |
| | |
| | | else ->{ |
| | | mapInfoHead.type = BaseDataUIBean.TYPE_.car |
| | | val car = gson.fromJson<HttpCarRespBean>(str,HttpCarRespBean::class.java) |
| | | val gcar = gson.fromJson<HttpGisCarRespBean>(str, HttpGisCarRespBean::class.java) |
| | | // car.isResult = false |
| | | if (car.isResult){ |
| | | if (car.data !=null){ |
| | |
| | | // Log.i(TAG, "解析之后的车模型=$str") |
| | | CThreadPoolExecutor.runInBackground(Runnable{ |
| | | str = gson.toJson(car.data.map_json) |
| | | var giscarStr = gson.toJson(gcar.data.map_json) |
| | | MyLog.i(PlatFormConstant.HTTPTAG,"车辆模型保存成功") |
| | | FileUtil.writeTxtFileToSD(app.getAppContext(),fileName,str,"") |
| | | FileUtil.writeTxtFileToSD(app.getAppContext(),"gis"+fileName,giscarStr,"") |
| | | sendVehicleInfo() |
| | | }) |
| | | |