From 4a7a83fda7e283830ba95f04c05fb5df9efe9d3a Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Fri, 24 Feb 2023 16:43:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E7=94=A8=E5=9B=9E=E8=B0=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zzjee/api/ApiController.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/zzjee/api/ApiController.java b/src/main/java/com/zzjee/api/ApiController.java index 94eaaf5c..e4b5fe5f 100644 --- a/src/main/java/com/zzjee/api/ApiController.java +++ b/src/main/java/com/zzjee/api/ApiController.java @@ -52,6 +52,7 @@ import org.springframework.web.bind.annotation.*; import org.springframework.web.util.UriComponentsBuilder; import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import javax.validation.ConstraintViolation; import java.util.*; @@ -449,4 +450,15 @@ public class ApiController { } return Result.success(noticeList); } + + + @RequestMapping(value = "/callback", method = RequestMethod.GET, consumes = MediaType.APPLICATION_JSON_VALUE) + @ResponseBody + public AjaxJson callback( HttpServletRequest request, HttpServletResponse response) { + + AjaxJson j = new AjaxJson(); + String code=request.getParameter("code"); + System.out.println(code+"************"); + return j; + } }