|
|
@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
import java.util.Enumeration;
|
|
|
|
|
|
/**
|
|
|
@@ -27,7 +28,8 @@ public class NotifyController {
|
|
|
private NotifyService notifyService;
|
|
|
|
|
|
@PostMapping("/insurance")
|
|
|
- public String insuranceNotify(HttpServletRequest request) {
|
|
|
+ public String insuranceNotify(HttpServletRequest request) throws UnsupportedEncodingException {
|
|
|
+ request.setCharacterEncoding("UTF-8");
|
|
|
String req = request.getParameter("req");
|
|
|
log.info("收到保险通知:{}", req);
|
|
|
NotifyInsuranceReqVO notifyInsuranceReqVO = JSONObject.parseObject(req, NotifyInsuranceReqVO.class);
|