|
|
@@ -7,6 +7,7 @@ import com.malk.utils.UtilServlet;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -22,9 +23,8 @@ public class RtrController {
|
|
|
private RtrServer rtrServer;
|
|
|
|
|
|
@PostMapping("/rtr")
|
|
|
- McR notice(HttpServletRequest request) {
|
|
|
-
|
|
|
- Map data = UtilServlet.getParamMap(request);
|
|
|
+ McR notice(@RequestBody Map<String, Object> data) {
|
|
|
+ log.info("RtrController:notice {}", data);
|
|
|
String instanceId = UtilMap.getString(data, "instanceId");
|
|
|
String type = UtilMap.getString(data, "type");
|
|
|
if (type.equals("YWJT")) {
|