From c28ef383113b33c59d8eea50c34f08190d34e24c Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Fri, 10 Apr 2026 09:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BF=9D=E5=AD=98=E6=8E=A5=E5=8F=A3=20@Reque?= =?UTF-8?q?stBody=20=E7=B1=BB=E5=9E=8B=E6=94=B9=E4=B8=BA=20Map=20=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=20JSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/aiot/controller/AiAlgorithmController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/genersoft/iot/vmp/aiot/controller/AiAlgorithmController.java b/src/main/java/com/genersoft/iot/vmp/aiot/controller/AiAlgorithmController.java index b413839af..d982728bd 100644 --- a/src/main/java/com/genersoft/iot/vmp/aiot/controller/AiAlgorithmController.java +++ b/src/main/java/com/genersoft/iot/vmp/aiot/controller/AiAlgorithmController.java @@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; +import java.util.Map; @Slf4j @RestController @@ -39,7 +40,8 @@ public class AiAlgorithmController { @Operation(summary = "保存算法全局参数") @PostMapping("/global-params/{algoCode}") - public void saveGlobalParams(@PathVariable String algoCode, @RequestBody String globalParams) { + public void saveGlobalParams(@PathVariable String algoCode, @RequestBody Map body) { + String globalParams = body.get("globalParams"); algorithmService.saveGlobalParams(algoCode, globalParams); } }