| | |
| | | package com.ruoyi.jianguan.dongfu; |
| | | |
| | | import cn.hutool.http.HttpUtil; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.ruoyi.chargingPile.api.feignClient.ChargingGunClient; |
| | | import com.ruoyi.chargingPile.api.feignClient.ChargingPileClient; |
| | |
| | | chargingStationInfoList.add(chargingStationInfo); |
| | | } |
| | | // 推送http请求 |
| | | String result = HttpRequestUtil.httpPost(PUSH_URL + PUSH_SITE_URL, JSONObject.toJSONString(chargingStationInfoList), ""); |
| | | String result = HttpUtil.post(PUSH_URL + PUSH_SITE_URL, JSONObject.toJSONString(chargingStationInfoList)); |
| | | log.info("推送充电站信息:{}",result); |
| | | } |
| | | return R.ok(); |
| | |
| | | chargingPileInfoList.add(chargingPileInfo); |
| | | } |
| | | // 推送http请求 |
| | | String result = HttpRequestUtil.httpPost(PUSH_URL + PUSH_PILE_URL, JSONObject.toJSONString(chargingPileInfoList), ""); |
| | | String result = HttpUtil.post(PUSH_URL + PUSH_PILE_URL, JSONObject.toJSONString(chargingPileInfoList)); |
| | | log.info("推送充电桩信息:{}",result); |
| | | } |
| | | |
| | |
| | | chargingGunInfoList.add(chargingGunInfo); |
| | | } |
| | | // 推送http请求 |
| | | String result = HttpRequestUtil.httpPost(PUSH_URL + PUSH_GUN_URL, JSONObject.toJSONString(chargingGunInfoList), ""); |
| | | String result = HttpUtil.post(PUSH_URL + PUSH_GUN_URL, JSONObject.toJSONString(chargingGunInfoList)); |
| | | log.info("推送充电枪信息:{}",result); |
| | | } |
| | | return R.ok(); |