xiongzhu 4 anos atrás
pai
commit
662164478e

+ 7 - 1
src/main/java/com/izouma/nineth/web/HmPayController.java

@@ -1,20 +1,26 @@
 package com.izouma.nineth.web;
 
+import com.alibaba.fastjson.JSON;
 import com.izouma.nineth.service.HMPayService;
 import lombok.AllArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import javax.servlet.http.HttpServletRequest;
+
 @RestController
 @RequestMapping("/hmPay")
+@Slf4j
 @AllArgsConstructor
 public class HmPayController extends BaseController {
     private final HMPayService hmPayService;
 
     @PostMapping("/notify/{type}/{orderId}")
-    public String orderNotify(@PathVariable String type, @PathVariable String orderId) {
+    public String orderNotify(@PathVariable String type, @PathVariable String orderId, HttpServletRequest req) {
+        log.info("回调参数 {}", JSON.toJSONString(req.getParameterMap(), true));
         return "respCode=000000";
     }
 }