mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
规范获取应用列表接口方法的相关字段命名
This commit is contained in:
@@ -23,13 +23,11 @@ public class WxCpAgentServiceImpl implements WxCpAgentService {
|
||||
|
||||
@Override
|
||||
public WxCpAgent get(Integer agentId) throws WxErrorException {
|
||||
|
||||
String url = "https://qyapi.weixin.qq.com/cgi-bin/agent/get";
|
||||
if (agentId != null) {
|
||||
url += "?agentid=" + agentId;
|
||||
} else {
|
||||
if (agentId == null) {
|
||||
throw new IllegalArgumentException("缺少agentid参数");
|
||||
}
|
||||
|
||||
String url = "https://qyapi.weixin.qq.com/cgi-bin/agent/get?agentid=" + agentId;
|
||||
String responseContent = this.mainService.get(url, null);
|
||||
return WxCpAgent.fromJson(responseContent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user