|
@@ -17,9 +17,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -47,9 +45,9 @@ public class WechatH5PayController {
|
|
|
@Autowired
|
|
|
private OmsOrderPayService omsOrderPayService;
|
|
|
|
|
|
- @GetMapping("/pay")
|
|
|
+ @PostMapping("/pay")
|
|
|
@ResponseBody
|
|
|
- public CommonResult pay(WxPayFrom wxPayFrom, HttpServletRequest request) {
|
|
|
+ public CommonResult pay(@RequestBody WxPayFrom wxPayFrom, HttpServletRequest request) {
|
|
|
Long orderId = wxPayFrom.getOrderId();
|
|
|
String openid = wxPayFrom.getOpenid();
|
|
|
String tradeType = wxPayFrom.getTradeType();
|