Commit 29a6bdefa93354b46441cd953cf427cb749ed343

Authored by fengliang
1 parent 7d848587

update:回归正常退款接口

etrade-rpc/src/main/java/com/diligrp/etrade/rpc/resolver/WeChatPayRpcResolver.java
@@ -111,17 +111,7 @@ public class WeChatPayRpcResolver { @@ -111,17 +111,7 @@ public class WeChatPayRpcResolver {
111 weChatPayRefundDto.setNotifyUrl(backBaseUrl+weChatPayRefundDto.getNotifyUrl()); 111 weChatPayRefundDto.setNotifyUrl(backBaseUrl+weChatPayRefundDto.getNotifyUrl());
112 //组装headers 112 //组装headers
113 HttpHeaders prepareHeaders = creatHeader(weChatPayRefundDto.getMarketId().toString(), REFUND_STATE_INFO); 113 HttpHeaders prepareHeaders = creatHeader(weChatPayRefundDto.getMarketId().toString(), REFUND_STATE_INFO);
114 - //Message<WeChatRefundBackDto> refundJsonObject = payRpc.refundHg(weChatPayRefundDto, prepareHeaders);  
115 - //退款发起模拟成功  
116 - Message<WeChatRefundBackDto> refundJsonObject = new Message<>();  
117 - refundJsonObject.setCode(200);  
118 - WeChatRefundBackDto weChatRefundBackDto = new WeChatRefundBackDto();  
119 - Snowflake snowflake = IdUtil.createSnowflake(1, 1);  
120 - weChatRefundBackDto.setRefundId(snowflake.nextIdStr());  
121 - weChatRefundBackDto.setState(4);  
122 - weChatRefundBackDto.setMessage("退款成功");  
123 - refundJsonObject.setData(weChatRefundBackDto);  
124 - //退款发起模拟成功 114 + Message<WeChatRefundBackDto> refundJsonObject = payRpc.refundHg(weChatPayRefundDto, prepareHeaders);
125 if(!refundJsonObject.getCode().equals(200)){ 115 if(!refundJsonObject.getCode().equals(200)){
126 log.info("退款发起失败:退款参数{},请求体头部为{},请求结果为{}",weChatPayRefundDto,prepareHeaders,refundJsonObject); 116 log.info("退款发起失败:退款参数{},请求体头部为{},请求结果为{}",weChatPayRefundDto,prepareHeaders,refundJsonObject);
127 throw new PlatformServiceException(ErrorCode.SYSTEM_UNKNOWN_ERROR, "退款失败:" + refundJsonObject.getMessage()); 117 throw new PlatformServiceException(ErrorCode.SYSTEM_UNKNOWN_ERROR, "退款失败:" + refundJsonObject.getMessage());