mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update
This commit is contained in:
@@ -246,6 +246,7 @@ public class PileStationInfoController extends BaseController {
|
||||
if (StringUtils.isBlank(String.valueOf(dto.getStationId()))) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||
}
|
||||
|
||||
// 推送联联
|
||||
if (StringUtils.equals("1", dto.getThirdPartyType())) {
|
||||
String result = lianLianService.pushStationInfo(dto);
|
||||
|
||||
@@ -117,14 +117,17 @@ public class HttpRequestUtil {
|
||||
params.put("Sig", sign);
|
||||
|
||||
String postData = JSON.toJSONString(params);
|
||||
System.out.println("最终提交数据:" + postData);
|
||||
log.info("最终提交数据:{}", postData);
|
||||
// System.out.println("最终提交数据:" + postData);
|
||||
|
||||
String hutoolRequest = HttpRequest.post(url).header("Authorization", "Bearer " + token).body(postData).execute().body();
|
||||
|
||||
System.out.println("接收到返回数据:" + hutoolRequest);
|
||||
log.info("接收到返回数据:{}", hutoolRequest);
|
||||
// System.out.println("接收到返回数据:" + hutoolRequest);
|
||||
|
||||
Map<String, String> map = (Map<String, String>) JSON.parse(hutoolRequest);
|
||||
|
||||
log.info("返回数据map:{}", JSON.toJSONString(map));
|
||||
String rData = map.get("Data");
|
||||
String resultMsg = map.get("Msg");
|
||||
|
||||
@@ -137,7 +140,8 @@ public class HttpRequestUtil {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
System.out.println("解密数据:" + plainData);
|
||||
log.info("解密数据:{}", plainData);
|
||||
// System.out.println("解密数据:" + plainData);
|
||||
return resultMsg;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user