公用回调接口

master
erzhongxmu 2023-02-24 16:43:39 +08:00
parent 8be0477870
commit 4a7a83fda7
1 changed files with 12 additions and 0 deletions

View File

@ -52,6 +52,7 @@ import org.springframework.web.bind.annotation.*;
import org.springframework.web.util.UriComponentsBuilder; import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolation;
import java.util.*; import java.util.*;
@ -449,4 +450,15 @@ public class ApiController {
} }
return Result.success(noticeList); 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;
}
} }