配置测试环境支付成功回调

This commit is contained in:
谭凯凯
2024-10-10 14:53:14 +08:00
committed by Tankaikai
parent 26d9ec6a6c
commit 67910debe4
3 changed files with 12 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
package com.chaozhanggui.system.cashierservice.controller;
import cn.hutool.extra.servlet.ServletUtil;
import com.alibaba.fastjson.JSON;
import com.chaozhanggui.system.cashierservice.service.OrderService;
import com.chaozhanggui.system.cashierservice.sign.CodeEnum;
@@ -8,6 +9,7 @@ import com.chaozhanggui.system.cashierservice.sign.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
@@ -25,11 +27,12 @@ public class NotifyController {
}
@RequestMapping("notifyPay")
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));
public String notifyPay(HttpServletRequest request,@RequestParam Map<String,Object> map){
log.info("request ip:{}", request.getRemoteAddr());
Map<String, String[]> params = ServletUtil.getParams(request);
String body = ServletUtil.getBody(request);
log.info("notifyPay params:{}", JSON.toJSONString(params));
log.info("notifyPay body:{}", body);
return null;
}