添加第二个微信使用的 API,获取微信服务器地址
This commit is contained in:
parent
206015cc41
commit
485a6da98a
@ -44,5 +44,11 @@ public class WeChatController {
|
|||||||
return weChatOfficialAccountService.getAccessToken(true);
|
return weChatOfficialAccountService.getAccessToken(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/api_domain_ip")
|
||||||
|
@ResponseBody
|
||||||
|
public String getDomainIPs() throws WxErrorException {
|
||||||
|
log.debug("Get access token from WeChat");
|
||||||
|
return weChatOfficialAccountService.getDomainIPs();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -29,9 +29,10 @@ class DateTest {
|
|||||||
Map<Integer, Boolean> map1 = reqIds.stream().collect(Collectors.toMap(Function.identity(), item -> reqs.contains(item)));
|
Map<Integer, Boolean> map1 = reqIds.stream().collect(Collectors.toMap(Function.identity(), item -> reqs.contains(item)));
|
||||||
Map<Integer, Boolean> map2 = reqIds.stream().collect(Collectors.toMap(Function.identity(), reqs::contains));
|
Map<Integer, Boolean> map2 = reqIds.stream().collect(Collectors.toMap(Function.identity(), reqs::contains));
|
||||||
|
|
||||||
log.debug("Map Size {}",map2);
|
log.debug("Map Size {}",11+20);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user