|
|
@@ -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";
|