Browse Source

支付组件

zouxuan 4 months ago
parent
commit
f07cab8896

+ 4 - 0
mec-biz/pom.xml

@@ -59,6 +59,10 @@
 					<artifactId>mybatis-plus-annotation</artifactId>
 					<groupId>com.baomidou</groupId>
 				</exclusion>
+				<exclusion>
+					<groupId>org.springframework.boot</groupId>
+					<artifactId>spring-boot-starter-log4j2</artifactId>
+				</exclusion>
 			</exclusions>
 		</dependency>
 		<dependency>

+ 1 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/OrderPayOpsServiceImpl.java

@@ -270,6 +270,7 @@ public class OrderPayOpsServiceImpl implements OrderPayOpsService {
         paymentOrder.setPaymentChannel(payParam.getPayChannel());
         paymentOrder.setIp(payParam.getIp());
         paymentOrder.setCode(payParam.getCode());
+        paymentOrder.setPayMode(true);
         PaymentReq paymentReq = paymentService.pay(paymentOrder);
         if (Objects.isNull(paymentReq)) {
             throw new BizException("生成支付参数异常");