支付问题
This commit is contained in:
@@ -177,11 +177,9 @@ public class OrderPayController {
|
|||||||
@PostMapping("/shopPayApi/js2Pay")
|
@PostMapping("/shopPayApi/js2Pay")
|
||||||
@Debounce(value = "#payParam.checkOrderPay.orderId")
|
@Debounce(value = "#payParam.checkOrderPay.orderId")
|
||||||
public CzgResult<Map<String, Object>> js2PayOrder(HttpServletRequest request, @RequestBody OrderPayParamDTO payParam) {
|
public CzgResult<Map<String, Object>> js2PayOrder(HttpServletRequest request, @RequestBody OrderPayParamDTO payParam) {
|
||||||
if ("alipay".equals(payParam.getPayType())) {
|
if ("ALIPAY".equals(payParam.getPayType())) {
|
||||||
payParam.setPayType(PayCst.Type.ALIPAY);
|
payParam.setPayType(PayCst.Type.ALIPAY);
|
||||||
} else if ("aliPay".equals(payParam.getPayType())) {
|
} else if ("WECHAT".equals(payParam.getPayType())) {
|
||||||
payParam.setPayType(PayCst.Type.ALIPAY);
|
|
||||||
} else if ("wechatPay".equals(payParam.getPayType())) {
|
|
||||||
payParam.setPayType(PayCst.Type.WECHAT);
|
payParam.setPayType(PayCst.Type.WECHAT);
|
||||||
} else {
|
} else {
|
||||||
throw new CzgException(payParam.getPayType() + "支付方式错误");
|
throw new CzgException(payParam.getPayType() + "支付方式错误");
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ public class SaTokenConfigure implements WebMvcConfigurer {
|
|||||||
SaRouter.back();
|
SaRouter.back();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
log.info("放行1");
|
|
||||||
SaRouter
|
SaRouter
|
||||||
.match(r -> "OPTIONS".equalsIgnoreCase(SaHolder.getRequest().getMethod()))
|
.match(r -> "OPTIONS".equalsIgnoreCase(SaHolder.getRequest().getMethod()))
|
||||||
.stop()
|
.stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user