Skip to content

Commit

Permalink
Merge pull request #364 from mmagi/feat_bot
Browse files Browse the repository at this point in the history
fix: robot webhook missing root object
  • Loading branch information
ZhouYixun authored Jun 10, 2023
2 parents 90d3862 + 30a57fc commit 1333e77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void sendMessage(RestTemplate restTemplate, String token, String secret,
ResponseEntity<Object> responseEntity = restTemplate.getForEntity(token, Object.class);
log.info("robot result: " + responseEntity.getBody());
} else {
Object content = messageTemplate.getValue(ctx);
Object content = messageTemplate.getValue(ctx, message);
ResponseEntity<Object> responseEntity = restTemplate.postForEntity(token, content, Object.class);
log.info("robot result: " + responseEntity.getBody());
}
Expand Down

0 comments on commit 1333e77

Please sign in to comment.