修复高德消费明细回推参数错误问题

This commit is contained in:
lulz1 2024-05-13 15:43:57 +08:00
parent 8aa2127cb0
commit ff05e78348
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ public class AmapNoteController {
@PostMapping("/status") @PostMapping("/status")
public AmapNoteResponse statusEvent(@RequestBody String in) { public AmapNoteResponse statusEvent(@RequestBody String in) {
String[] split = in.split("=");
in = UriUtils.decode(split[1], StandardCharsets.UTF_8);
// 拆分成键值对 // 拆分成键值对
String[] pairs = in.split("&"); String[] pairs = in.split("&");
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();