mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-24 20:34:17 +08:00
解决冲突
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
- [payment-spring-boot GitHub文档](https://notfound403.github.io/payment-spring-boot)
|
||||
- [payment-spring-boot Gitee文档](https://felord.gitee.io/payment-spring-boot)
|
||||
|
||||
|
||||
## 目前已经实现所有服务商和直连商户接口
|
||||
|
||||
- 实现微信支付多商户
|
||||
|
||||
@@ -112,7 +112,20 @@ public class WechatBatchTransferApi extends AbstractApi {
|
||||
public WechatResponseEntity<ObjectNode> queryBatchByBatchId(QueryBatchTransferParams queryBatchTransferParams) {
|
||||
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
||||
this.client().withType(WechatPayV3Type.BATCH_TRANSFER_BATCH_ID, queryBatchTransferParams)
|
||||
.function(this::apply)
|
||||
.function((type, params) -> {
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
|
||||
queryParams.add("need_query_detail", params.getNeedQueryDetail().toString());
|
||||
queryParams.add("offset", params.getOffset().toString());
|
||||
queryParams.add("limit", params.getLimit().toString());
|
||||
queryParams.add("detail_status", params.getDetailStatus().name());
|
||||
|
||||
URI uri = UriComponentsBuilder.fromHttpUrl(type.uri(WeChatServer.CHINA))
|
||||
.queryParams(queryParams)
|
||||
.build()
|
||||
.expand(params.getCode())
|
||||
.toUri();
|
||||
return Get(uri);
|
||||
})
|
||||
.consumer(wechatResponseEntity::convert)
|
||||
.request();
|
||||
return wechatResponseEntity;
|
||||
@@ -391,19 +404,4 @@ public class WechatBatchTransferApi extends AbstractApi {
|
||||
.request();
|
||||
return wechatResponseEntity;
|
||||
}
|
||||
|
||||
private RequestEntity<?> apply(WechatPayV3Type type, QueryBatchTransferParams params) {
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
|
||||
queryParams.add("need_query_detail", params.getNeedQueryDetail().toString());
|
||||
queryParams.add("offset", params.getOffset().toString());
|
||||
queryParams.add("limit", params.getLimit().toString());
|
||||
queryParams.add("detail_status", params.getDetailStatus().name());
|
||||
|
||||
URI uri = UriComponentsBuilder.fromHttpUrl(type.uri(WeChatServer.CHINA))
|
||||
.queryParams(queryParams)
|
||||
.build()
|
||||
.expand(params.getCode())
|
||||
.toUri();
|
||||
return Get(uri);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user