chenw пре 7 година
родитељ
комит
b7f31791e4

+ 1 - 1
applications/device/device-client/src/main/java/com/usoftchina/smartschool/device/client/service/IcCardService.java

@@ -101,7 +101,7 @@ public class IcCardService {
         requestEntity.add("data", JSON.toJSONString(resultList));
         requestEntity.add("school", schoolName);
         HttpEntity<MultiValueMap<String, String>> httpEntity = new HttpEntity<>(requestEntity, headers);
-        ResponseEntity<Result> response = restTemplate.postForEntity(targetURL, resultList, Result.class);
+        ResponseEntity<Result> response = restTemplate.postForEntity(targetURL, httpEntity, Result.class);
         if (response.getStatusCode() == HttpStatus.OK) {
             Result<String> result = response.getBody();
             if (!result.isSuccess()) {