| | |
| | | import safeluck.drive.evaluation.platformMessage.JKMessage0101; |
| | | import safeluck.drive.evaluation.platformMessage.JKMessage0203; |
| | | import safeluck.drive.evaluation.platformMessage.JKMessage0206; |
| | | import safeluck.drive.evaluation.platformMessage.PlatFormConstant; |
| | | import safeluck.drive.evaluation.util.CThreadPoolExecutor; |
| | | import safeluck.drive.evaluation.util.FileUtil; |
| | | import safeluck.drive.evaluation.util.SPUtils; |
| | |
| | | Data judgeData = new Data.Builder().putString(Constant.TTS,json).build(); |
| | | OneTimeWorkRequest ttswoker = new OneTimeWorkRequest.Builder(TTSWorker.class).setInputData(judgeData).build(); |
| | | WorkManager.getInstance(getAppContext()).enqueue(ttswoker); |
| | | JsonArray jsonArray = JsonParser.parseString(json).getAsJsonArray(); |
| | | for (int i = 0; i < jsonArray.size(); i++) { |
| | | JsonObject jsonObject = jsonArray.get(i).getAsJsonObject(); |
| | | int emp_id = jsonObject.get("wrong_id").getAsInt(); |
| | | String utc = jsonObject.get("utc").getAsString(); |
| | | MyLog.i("评判消息解析之前的utc="+utc); |
| | | utc = utc.substring(2,utc.length()-3); |
| | | MyLog.i("评判消息解析之后的utc="+utc); |
| | | int sn = jsonObject.get("sn").getAsInt(); |
| | | // if (ExamPlatformData.getInstance().getExamType()==2){//场地评判消息 |
| | | // if (emp_id>31|| emp_id<0){ |
| | | // MyLog.i(TAG,"emp_id超出范围不能插入数据库(I类考场)"); |
| | | // return; |
| | | // } |
| | | // FailedProj failedProj = new FailedProj(Constant.SUBJECT_I, emp_id, Constant.TEST_STU_ID,utc,sn); |
| | | // MyLog.i("插入fail_projects表="+failedProj.toString()); |
| | | // failedProjRepository.insert(failedProj); |
| | | // } |
| | | // if (ExamPlatformData.getInstance().getExamType()>2){//道路 评判消息 |
| | | // if (emp_id>66|| emp_id<1){ |
| | | // MyLog.i(TAG,"emp_id超出范围不能插入数据库(路考类考场)"); |
| | | // return; |
| | | // } |
| | | // LuKaoFailedProj failedProj = new LuKaoFailedProj(Constant.SUBJECT_III, emp_id, Constant.TEST_STU_ID,utc,sn); |
| | | // MyLog.i("插入路考fail_projects表="+failedProj.toString()); |
| | | // failedProjRepository.insertLuKao(failedProj); |
| | | // } |
| | | |
| | | } |
| | | } |
| | | |
| | | break; |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | }else{ |
| | | |
| | | String str = "登录未成功,不能发送消息=0206"; |
| | | if (str.equalsIgnoreCase(last0206Str)){ |
| | | |
| | | }else{ |
| | | last0206Str = str; |
| | | MyLog.i(PlatFormConstant.TAG,str); |
| | | } |
| | | } |
| | | |
| | | break; |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | private String last0206Str=""; |
| | | private int lastSatNum= 0; |
| | | private int lastQf = 0; |
| | | |