mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-17 07:23:41 +08:00
style: style format
This commit is contained in:
@@ -269,15 +269,12 @@ public class WechatMarketingBusiFavorApi extends AbstractApi {
|
|||||||
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
|
||||||
this.client().withType(WechatPayV3Type.MARKETING_BUSI_FAVOR_GET_CALLBACKS, mchId)
|
this.client().withType(WechatPayV3Type.MARKETING_BUSI_FAVOR_GET_CALLBACKS, mchId)
|
||||||
.function((type, id) -> {
|
.function((type, id) -> {
|
||||||
|
|
||||||
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromHttpUrl(type.uri(WeChatServer.CHINA));
|
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromHttpUrl(type.uri(WeChatServer.CHINA));
|
||||||
|
|
||||||
if (StringUtils.hasText(id)) {
|
if (StringUtils.hasText(id)) {
|
||||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
|
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
|
||||||
queryParams.add("mchid", id);
|
queryParams.add("mchid", id);
|
||||||
uriComponentsBuilder.queryParams(queryParams);
|
uriComponentsBuilder.queryParams(queryParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
URI uri = uriComponentsBuilder
|
URI uri = uriComponentsBuilder
|
||||||
.build()
|
.build()
|
||||||
.toUri();
|
.toUri();
|
||||||
|
|||||||
Reference in New Issue
Block a user