公用回调接口
parent
8be0477870
commit
4a7a83fda7
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue