| | |
| | | sendSignalConfigsToRemote(indexs) |
| | | |
| | | val data = Data.Builder().putInt(Constant.EXAM_STATUS_TYPE,examType).build() |
| | | if (examType != safeluck.drive.evaluation.Constant.NONE_BEEN_START_EXAM) { |
| | | // if (examType != safeluck.drive.evaluation.Constant.NONE_BEEN_START_EXAM) { |
| | | try { |
| | | val jsonObject = JSONObject() |
| | | jsonObject.put("exam", 1) |
| | | if (examType == safeluck.drive.evaluation.Constant.NONE_BEEN_START_EXAM) { |
| | | jsonObject.put("exam", 0) |
| | | }else{ |
| | | jsonObject.put("exam", 1) |
| | | } |
| | | |
| | | jsonObject.put("type", examType) |
| | | val examJson = jsonObject.toString() |
| | | AYSdk.getInstance().sendCmd(safeluck.drive.evaluation.Constant.EXAM_STATUS, examJson) |
| | | } catch (e: JSONException) { |
| | | e.printStackTrace() |
| | | } |
| | | } |
| | | // } |
| | | return Result.success(data) |
| | | } |
| | | |