From ff05e783485ecd40ea163f46b16e18ba5fd39635 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Mon, 13 May 2024 15:43:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AB=98=E5=BE=B7=E6=B6=88?= =?UTF-8?q?=E8=B4=B9=E6=98=8E=E7=BB=86=E5=9B=9E=E6=8E=A8=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/chint/interfaces/rest/amap/in/AmapNoteController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/chint/interfaces/rest/amap/in/AmapNoteController.java b/src/main/java/com/chint/interfaces/rest/amap/in/AmapNoteController.java index c88a00d2..37b925e0 100644 --- a/src/main/java/com/chint/interfaces/rest/amap/in/AmapNoteController.java +++ b/src/main/java/com/chint/interfaces/rest/amap/in/AmapNoteController.java @@ -42,6 +42,8 @@ public class AmapNoteController { @PostMapping("/status") public AmapNoteResponse statusEvent(@RequestBody String in) { + String[] split = in.split("="); + in = UriUtils.decode(split[1], StandardCharsets.UTF_8); // 拆分成键值对 String[] pairs = in.split("&"); Map params = new HashMap<>();