app/src/main/java/safeluck/drive/evaluation/util/DataInit.kt
@@ -330,15 +330,12 @@
                        sendVehicleInfo()
                    }
                    if (str.contains("yard")){
                        if (ExamPlatformData.getInstance().examType ==ExamPlatformData.EXAM_TYPE_ChangKAO) {
                        sendMapInfo()
                        }
                    }
                    if (str.contains("road")){
                        if (ExamPlatformData.getInstance().examType > ExamPlatformData.EXAM_TYPE_ChangKAO) {
                        sendRoadMapInfo()
                        }
                    }
//                        Toast.makeText(applicationContext, jsonObject1!!.getString("data"), Toast.LENGTH_SHORT).show()
@@ -357,19 +354,21 @@
        val fileContent = FileUtil.readFile(mapPath)
        if (fileContent != null) {
            val str = String(fileContent)
            sendmapAndVehi = true
            sendMapSucc = true
            AYSdk.getInstance().sendCmd(safeluck.drive.evaluation.Constant.PUSH_MAP_INFO, str)
        } else {
            sendmapAndVehi = false
            sendMapSucc = false
            MyLog.i(String.format("文件:%s不存在", mapPath))
            CThreadPoolExecutor.runOnMainThread { Toast.makeText(app.getAppContext(), "文件:" + mapPath + "不存在", Toast.LENGTH_SHORT).show() }
        }
    }else{
        sendmapAndVehi = false
        sendMapSucc = false
    }
}
//标记车辆模型或地图 发送成功的标志-true
var sendmapAndVehi = false
var sendVehiSucc = false
var sendRoadMapSucc= false
var sendMapSucc= false
 fun sendVehicleInfo(){
    val carPath = ExamPlatformData.getInstance().carModelPath
    if (!TextUtils.isEmpty(carPath)) {
@@ -377,14 +376,14 @@
        val bytes = FileUtil.readFile(carPath)
        if (bytes != null) {
            val str = String(bytes)
            sendmapAndVehi = true
            sendVehiSucc = true
            AYSdk.getInstance().sendCmd(safeluck.drive.evaluation.Constant.PUSH_VECHILE_PROFILE, str)
        } else {
            MyLog.i(String.format("文件:%s不存在", carPath))
            sendmapAndVehi = false
            sendVehiSucc = false
        }
    }else{
        sendmapAndVehi = false
        sendVehiSucc = false
    }
}
 fun sendRoadMapInfo(){
@@ -395,15 +394,15 @@
        val fileContent = FileUtil.readFile(roadmapPath)
        if (fileContent != null) {
            val str = String(fileContent)
            sendmapAndVehi = true
            sendRoadMapSucc = true
            AYSdk.getInstance().sendCmd(safeluck.drive.evaluation.Constant.PUSH_ROAD_MAP_INFO, str)
        } else {
            MyLog.i(String.format("文件:%s不存在", roadmapPath))
            sendmapAndVehi = false
            sendRoadMapSucc = false
            CThreadPoolExecutor.runOnMainThread { Toast.makeText(app.getAppContext(), "文件:" + roadmapPath + "不存在", Toast.LENGTH_SHORT).show() }
        }
    } else {
        sendmapAndVehi = false
        sendRoadMapSucc = false
    }
}