Skip to content

Commit

Permalink
fix: consume json for get message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-Tian committed Jan 28, 2024
1 parent 57d76ea commit 8af1d19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public Response mpQrScanStatusScanned(String xmlData) {
@SneakyThrows
@POST
@Path("message")
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.APPLICATION_JSON)
public Response message(String xmlData) {
logger.info("接收到微信服务器发来的事件: " + xmlData);
Expand Down Expand Up @@ -213,7 +214,6 @@ public Response message(String xmlData) {
@SneakyThrows
@GET
@Path("message")
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.APPLICATION_JSON)
public Response message(@QueryParam("echostr") String echostr, String xmlData) {
logger.info("接收到微信服务器发来的事件: " + xmlData);
Expand Down

0 comments on commit 8af1d19

Please sign in to comment.