配置测试环境支付成功回调
This commit is contained in:
parent
cb2622591c
commit
26d9ec6a6c
|
|
@ -25,8 +25,11 @@ public class NotifyController {
|
|||
}
|
||||
|
||||
@RequestMapping("notifyPay")
|
||||
public String notifyPay(@RequestBody Map<String,Object> map){
|
||||
public String notifyPay(@RequestParam Map<String,Object> map){
|
||||
log.info("notifyPay:{}", JSON.toJSONString(map));
|
||||
log.error("notifyPay:{}", JSON.toJSONString(map));
|
||||
log.debug("notifyPay:{}", JSON.toJSONString(map));
|
||||
log.warn("notifyPay:{}", JSON.toJSONString(map));
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
package com.chaozhanggui.system.cashierservice.interceptor;
|
||||
|
||||
import cn.hutool.extra.servlet.ServletUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
|
@ -7,6 +9,7 @@ import javax.servlet.*;
|
|||
import javax.servlet.annotation.WebFilter;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
|
|
@ -20,6 +23,10 @@ public class CustomFilter implements Filter {
|
|||
@Override
|
||||
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
|
||||
log.info(">>>> customFilter doFilter start <<<<");
|
||||
log.info("request ip:{}", servletRequest.getRemoteAddr());
|
||||
Map<String, String[]> params = ServletUtil.getParams(servletRequest);
|
||||
log.info("request params:{}", params);
|
||||
log.info("request params:{}", JSON.toJSONString(params));
|
||||
RequestWrapper requestWapper = null;
|
||||
if (servletRequest instanceof HttpServletRequest) {
|
||||
requestWapper = new RequestWrapper((HttpServletRequest) servletRequest);
|
||||
|
|
|
|||
Loading…
Reference in New Issue