| | |
| | | break; |
| | | case Constant.RTK_INFO: |
| | | JSONObject jsonObject = null; |
| | | String utc=null; |
| | | try { |
| | | jsonObject = new JSONObject(json); |
| | | int qf = jsonObject.getInt("qf"); |
| | | int satNum = jsonObject.getInt("sat_num"); |
| | | |
| | | //需要将utc时间取出来,然后+8个小时为北京时间,再修改json字符串,然后发给服务器 |
| | | utc = jsonObject.getString("utc"); |
| | | //移动站服务给的是.40 的话 代表是400毫秒 |
| | | utc=Utils.utc2NetWorkTimeMillSeconds(utc+"0"); |
| | | |
| | | if (lastSatEqualNow(satNum)&&lastQfEqualNow(qf)){ |
| | | }else{ |
| | | ExamPlatformData.getInstance().setQfAndSatNum(qf,satNum); |
| | |
| | | jkMessage0206.alert = 0; |
| | | jkMessage0206.status = 0; |
| | | |
| | | |
| | | |
| | | utc = utc.substring(0,utc.length()-1); |
| | | json=json.replaceFirst("[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*",utc); |
| | | jkMessage0206.json =json; |
| | | jkMessage0206.length = jkMessage0206.json.length(); |
| | | AttachInfo attachInfo = new AttachInfo(); |