|
@@ -10,12 +10,15 @@ import com.zanxiang.sdk.domain.bo.PlatformOrderBO;
|
|
|
import com.zanxiang.sdk.domain.bo.ProductPayParamBO;
|
|
|
import com.zanxiang.sdk.domain.params.ProductPayParam;
|
|
|
import com.zanxiang.sdk.domain.params.UserData;
|
|
|
+import com.zanxiang.sdk.service.Impl.PlatformOrderServiceImpl;
|
|
|
import com.zanxiang.sdk.service.Impl.pay.PayService;
|
|
|
import com.zanxiang.sdk.service.PlatformOrderService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jdom.JDOMException;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -38,6 +41,7 @@ import java.util.Objects;
|
|
|
@RequestMapping(value = "/pay")
|
|
|
@Slf4j
|
|
|
public class PayController {
|
|
|
+ protected final Logger logger = LoggerFactory.getLogger(PayController.class);
|
|
|
|
|
|
@Resource
|
|
|
private PayService payService;
|
|
@@ -83,21 +87,21 @@ public class PayController {
|
|
|
@ApiOperation(value = "支付宝支付异步回调(二维码、H5、网站)")
|
|
|
@RequestMapping(value = "notify", method = RequestMethod.POST)
|
|
|
public String alipayNotify(HttpServletRequest request, HttpServletResponse response) throws IOException, JDOMException {
|
|
|
- log.info("支付宝支付异步回调 request:{},response:{}", request, response);
|
|
|
+ logger.info("支付宝支付异步回调 request:{},response:{}", request, response);
|
|
|
return payService.notify(request, response, PayWayEnum.ALIPAY.getNum());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "微信支付")
|
|
|
@RequestMapping(value = "wxPayNotify", method = RequestMethod.POST)
|
|
|
public String wxPayNotify(HttpServletRequest request, HttpServletResponse response) throws IOException, JDOMException {
|
|
|
- log.info("微信支付回调 request:{},response:{}", request, response);
|
|
|
+ logger.info("微信支付回调 request:{},response:{}", request, response);
|
|
|
return payService.notify(request, response, PayWayEnum.WXPAY.getNum());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "支付宝支付同步回调(二维码、H5、网站)")
|
|
|
@RequestMapping(value = "alipaySynNotify", method = RequestMethod.GET)
|
|
|
public ResultMap synNotify(HttpServletRequest request) {
|
|
|
- log.info("支付宝回调 request:{}", request);
|
|
|
+ logger.info("支付宝回调 request:{}", request);
|
|
|
return payService.synNotify(request, PayWayEnum.ALIPAY.getNum());
|
|
|
}
|
|
|
|