xiongzhu 4 anos atrás
pai
commit
4d9dc1ca95

+ 2 - 5
src/main/java/com/izouma/nineth/web/HmPayController.java

@@ -4,10 +4,7 @@ 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 org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletRequest;
 
@@ -18,7 +15,7 @@ import javax.servlet.http.HttpServletRequest;
 public class HmPayController extends BaseController {
     private final HMPayService hmPayService;
 
-    @PostMapping("/notify/{type}/{orderId}")
+    @GetMapping("/notify/{type}/{orderId}")
     public String orderNotify(@PathVariable String type, @PathVariable String orderId, HttpServletRequest req) {
         log.info("回调type={}, orderId={}, 参数={}", type, orderId, JSON.toJSONString(req.getParameterMap(), true));
         return "respCode=000000";