diff --git a/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/dto/PayOrderCreateReqDTO.java b/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/dto/PayOrderCreateReqDTO.java index 15d8bb48d..a5d2b0f4e 100644 --- a/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/dto/PayOrderCreateReqDTO.java +++ b/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/dto/PayOrderCreateReqDTO.java @@ -18,7 +18,7 @@ public class PayOrderCreateReqDTO implements Serializable { /** * 应用编号 */ - @NotEmpty(message = "应用编号不能为空") + @NotNull(message = "应用编号不能为空") private Long appId; /** * 用户 IP diff --git a/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/dto/PayOrderSubmitRespDTO.java b/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/dto/PayOrderSubmitRespDTO.java index b1a5d2e10..2bcb504e8 100644 --- a/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/dto/PayOrderSubmitRespDTO.java +++ b/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/dto/PayOrderSubmitRespDTO.java @@ -18,6 +18,6 @@ public class PayOrderSubmitRespDTO implements Serializable { /** * 调用支付渠道的响应结果 */ - private String invokeResponse; + private Object invokeResponse; } diff --git a/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/impl/PayOrderCoreServiceImpl.java b/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/impl/PayOrderCoreServiceImpl.java index 7edbeacbb..3c86c5593 100644 --- a/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/impl/PayOrderCoreServiceImpl.java +++ b/yudao-core-service/src/main/java/cn/iocoder/yudao/coreservice/modules/pay/service/order/impl/PayOrderCoreServiceImpl.java @@ -134,7 +134,7 @@ public class PayOrderCoreServiceImpl implements PayOrderCoreService { // TODO 轮询三方接口,是否已经支付的任务 // 返回成功 return new PayOrderSubmitRespDTO().setExtensionId(orderExtension.getId()) - .setInvokeResponse(JsonUtils.toJsonString(unifiedOrderResult)); + .setInvokeResponse(unifiedOrderResult.getData()); } private String generateOrderExtensionNo() { diff --git a/yudao-user-server/src/main/java/cn/iocoder/yudao/userserver/modules/pay/controller/order/vo/PayOrderSubmitRespVO.java b/yudao-user-server/src/main/java/cn/iocoder/yudao/userserver/modules/pay/controller/order/vo/PayOrderSubmitRespVO.java index cddc79c98..907a97946 100644 --- a/yudao-user-server/src/main/java/cn/iocoder/yudao/userserver/modules/pay/controller/order/vo/PayOrderSubmitRespVO.java +++ b/yudao-user-server/src/main/java/cn/iocoder/yudao/userserver/modules/pay/controller/order/vo/PayOrderSubmitRespVO.java @@ -18,6 +18,6 @@ public class PayOrderSubmitRespVO { /** * 调用支付渠道的响应结果 */ - private String invokeResponse; + private Object invokeResponse; } diff --git a/yudao-user-server/src/main/resources/static/pay.html b/yudao-user-server/src/main/resources/static/pay.html index d7e36a719..89e95849b 100644 --- a/yudao-user-server/src/main/resources/static/pay.html +++ b/yudao-user-server/src/main/resources/static/pay.html @@ -13,10 +13,14 @@