| | |
| | | log.info("获取三方平台授权token请求Data:" + jsonString); |
| | | post.body(request_json); |
| | | HttpResponse execute = post.execute(); |
| | | String body = execute.body(); |
| | | if(200 != execute.getStatus()){ |
| | | log.error("获取三方平台授权token失败:" + execute.body()); |
| | | log.error("获取三方平台授权token失败:" + body); |
| | | return null; |
| | | } |
| | | log.info("获取三方平台授权token响应参数:" + execute.body()); |
| | | BaseResult baseResult = JSON.parseObject(execute.body(), BaseResult.class); |
| | | log.info("获取三方平台授权token响应参数:" + body); |
| | | BaseResult baseResult = JSON.parseObject(body, BaseResult.class); |
| | | Integer Ret = baseResult.getRet(); |
| | | if(0 != Ret){ |
| | | log.error("获取三方平台授权token失败:" + baseResult.getMsg()); |
| | |
| | | HttpRequest post = HttpUtil.createPost(operator.getUrl() + InterfaceUrlEnum.NOTIFICATION_STATION_STATUS.getUrl()); |
| | | buildBody(post, info, operator); |
| | | HttpResponse execute = post.execute(); |
| | | String body = execute.body(); |
| | | if(200 != execute.getStatus()){ |
| | | log.error("推送三方平台设备状态失败:" + execute.body()); |
| | | log.error("推送三方平台设备状态失败:" + body); |
| | | return null; |
| | | } |
| | | log.info("推送三方平台设备状态响应:" + execute.body()); |
| | | BaseResult baseResult = JSON.parseObject(execute.body(), BaseResult.class); |
| | | log.info("推送三方平台设备状态响应:" + body); |
| | | BaseResult baseResult = JSON.parseObject(body, BaseResult.class); |
| | | Integer Ret = baseResult.getRet(); |
| | | if(0 != Ret){ |
| | | log.error("推送三方平台设备状态失败:" + baseResult.getMsg()); |
| | |
| | | HttpRequest post = HttpUtil.createPost(operator.getUrl() + InterfaceUrlEnum.NOTIFICATION_START_CHARGE_RESULT.getUrl()); |
| | | buildBody(post, info, operator); |
| | | HttpResponse execute = post.execute(); |
| | | String body = execute.body(); |
| | | if(200 != execute.getStatus()){ |
| | | log.error("推送三方平台启动充电结果失败:" + execute.body()); |
| | | log.error("推送三方平台启动充电结果失败:" + body); |
| | | return null; |
| | | } |
| | | log.info("推送三方平台启动充电结果响应:" + execute.body()); |
| | | BaseResult baseResult = JSON.parseObject(execute.body(), BaseResult.class); |
| | | log.info("推送三方平台启动充电结果响应:" + body); |
| | | BaseResult baseResult = JSON.parseObject(body, BaseResult.class); |
| | | Integer Ret = baseResult.getRet(); |
| | | if(0 != Ret){ |
| | | log.error("推送三方平台启动充电结果失败:" + baseResult.getMsg()); |
| | |
| | | HttpRequest post = HttpUtil.createPost(operator.getUrl() + InterfaceUrlEnum.NOTIFICATION_EQUIP_CHARGE_STATUS.getUrl()); |
| | | buildBody(post, info, operator); |
| | | HttpResponse execute = post.execute(); |
| | | String body = execute.body(); |
| | | if(200 != execute.getStatus()){ |
| | | log.error("推送三方平台充电状态失败:" + execute.body()); |
| | | log.error("推送三方平台充电状态失败:" + body); |
| | | return null; |
| | | } |
| | | log.info("推送三方平台充电状态响应:" + execute.body()); |
| | | BaseResult baseResult = JSON.parseObject(execute.body(), BaseResult.class); |
| | | log.info("推送三方平台充电状态响应:" + body); |
| | | BaseResult baseResult = JSON.parseObject(body, BaseResult.class); |
| | | Integer Ret = baseResult.getRet(); |
| | | if(0 != Ret){ |
| | | log.error("推送三方平台充电状态失败:" + baseResult.getMsg()); |
| | |
| | | HttpRequest post = HttpUtil.createPost(operator.getUrl() + InterfaceUrlEnum.NOTIFICATION_STOP_CHARGE_RESULT.getUrl()); |
| | | buildBody(post, info, operator); |
| | | HttpResponse execute = post.execute(); |
| | | String body = execute.body(); |
| | | if(200 != execute.getStatus()){ |
| | | log.error("推送三方平台停止充电结果失败:" + execute.body()); |
| | | log.error("推送三方平台停止充电结果失败:" + body); |
| | | return null; |
| | | } |
| | | log.info("推送三方平台停止充电结果响应:" + execute.body()); |
| | | BaseResult baseResult = JSON.parseObject(execute.body(), BaseResult.class); |
| | | log.info("推送三方平台停止充电结果响应:" + body); |
| | | BaseResult baseResult = JSON.parseObject(body, BaseResult.class); |
| | | Integer Ret = baseResult.getRet(); |
| | | if(0 != Ret){ |
| | | log.error("推送三方平台停止充电结果失败:" + baseResult.getMsg()); |
| | |
| | | HttpRequest post = HttpUtil.createPost(operator.getUrl() + InterfaceUrlEnum.NOTIFICATION_CHARGE_ORDER_INFO.getUrl()); |
| | | buildBody(post, info, operator); |
| | | HttpResponse execute = post.execute(); |
| | | String body = execute.body(); |
| | | if(200 != execute.getStatus()){ |
| | | log.error("推送三方平台充电订单信息失败:" + execute.body()); |
| | | log.error("推送三方平台充电订单信息失败:" + body); |
| | | return null; |
| | | } |
| | | log.info("推送三方平台充电订单信息响应:" + execute.body()); |
| | | BaseResult baseResult = JSON.parseObject(execute.body(), BaseResult.class); |
| | | log.info("推送三方平台充电订单信息响应:" + body); |
| | | BaseResult baseResult = JSON.parseObject(body, BaseResult.class); |
| | | Integer Ret = baseResult.getRet(); |
| | | if(0 != Ret){ |
| | | log.error("推送三方平台充电订单信息失败:" + baseResult.getMsg()); |