Commit ac05ecc2 by wubh

包活干V2.3.0-修改设备校验方式

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@30394 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d90b8c5a
......@@ -2,6 +2,7 @@ package com.glsx.ordercenter.service.impl;
import java.util.Date;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.glsx.ordercenter.constants.BizConstants;
import com.glsx.ordercenter.constants.ResultCodeEnum;
......@@ -88,7 +89,8 @@ public class MsDeviceServiceImpl implements MsDeviceService {
boolean locationValid;
try {
JSONObject innerData = respData.getJSONObject("data").getJSONObject("data");
String dataJson = respData.getString("data");
JSONObject innerData = JSON.parseObject(dataJson).getJSONObject("data");
Long gpsTime = innerData.getLong("gpsTime");
Integer type = innerData.getInteger("type");
long currentMs = new Date().getTime();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!