添加第二个微信使用的 API,获取微信服务器地址

This commit is contained in:
YuCheng Hu 2023-01-30 06:02:20 -05:00
parent 206015cc41
commit 485a6da98a
2 changed files with 8 additions and 1 deletions

View File

@ -44,5 +44,11 @@ public class WeChatController {
return weChatOfficialAccountService.getAccessToken(true);
}
@GetMapping("/api_domain_ip")
@ResponseBody
public String getDomainIPs() throws WxErrorException {
log.debug("Get access token from WeChat");
return weChatOfficialAccountService.getDomainIPs();
}
}

View File

@ -29,9 +29,10 @@ class DateTest {
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));
log.debug("Map Size {}",map2);
log.debug("Map Size {}",11+20);
}
}