CPD Results
The following document contains the results of PMD's CPD 6.29.0.
Duplications
File | Line |
---|---|
com/foxinmy/weixin4j/qy/api/AgentApi.java | 48 |
com/foxinmy/weixin4j/qy/api/SuiteApi.java | 223 |
agent_get_uri, token.getAccessToken(), agentid)); JSONObject jsonObj = response.getAsJson(); AgentInfo agent = JSON.toJavaObject(jsonObj, AgentInfo.class); agent.setAllowUsers(JSON.parseArray( jsonObj.getJSONObject("allow_userinfos").getString("user"), User.class)); agent.setAllowPartys(JSON.parseArray( jsonObj.getJSONObject("allow_partys").getString("partyid"), Integer.class)); agent.setAllowTags(JSON.parseArray(jsonObj.getJSONObject("allow_tags") .getString("tagid"), Integer.class)); return agent; } /** * 设置企业应用的选项设置信息,如:地理位置上报等 * * @param agentSet * 设置信息 * @see com.foxinmy.weixin4j.qy.model.AgentSetter * @see <a href="https://work.weixin.qq.com/api/doc#10088">设置企业号信息</a> * @return 处理结果 * @throws WeixinException */ public ApiResult setAgent(AgentSetter agentSet) throws WeixinException { |