| | |
| | | String result = vehicleControlUtil.vehiclesCommand(vehiclesCommandVo, xpOrder.getAppUserId()); |
| | | log.info("车辆控制结果:{}", result); |
| | | JSONObject jsonObject = JSONObject.parseObject(result); |
| | | Integer code = jsonObject.getInteger("code"); |
| | | if (code != 0) { |
| | | String msgId = jsonObject.getString("msgId"); |
| | | if (StringUtils.isEmpty(msgId)) { |
| | | return 0; |
| | | }else { |
| | | xpOrderClient.updateOrder(xpOrder); |
| | |
| | | String result = vehicleControlUtil.vehiclesCommand(vehiclesCommandVo, xpOrder.getAppUserId()); |
| | | log.info("车辆控制结果:{}", result); |
| | | JSONObject jsonObject = JSONObject.parseObject(result); |
| | | Integer code = jsonObject.getInteger("code"); |
| | | if (code != 0) { |
| | | String msgId = jsonObject.getString("msgId"); |
| | | if (StringUtils.isEmpty(msgId)) { |
| | | return 0; |
| | | }else { |
| | | return 1; |