| | |
| | | return null; |
| | | } |
| | | public static QywxSendMsgResponse sendMsg(String token, QywxSendMsgRequest param) { |
| | | String[] interfaceUrl = QywxConstant.SEND_MSG; |
| | | String url = interfaceUrl[0].replace("${accesstoken}",token); |
| | | QywxSendMsgResponse response = sendHttpRequestSingle(url,interfaceUrl[1],JSONObject.toJSONString(param) |
| | | ,new TypeReference<QywxSendMsgResponse>(){}); |
| | | if(response.getErrcode()!=null && response.getErrcode() ==0){ |
| | | return response; |
| | | try{ |
| | | String[] interfaceUrl = QywxConstant.SEND_MSG; |
| | | String url = interfaceUrl[0].replace("${accesstoken}",token); |
| | | QywxSendMsgResponse response = sendHttpRequestSingle(url,interfaceUrl[1],JSONObject.toJSONString(param) |
| | | ,new TypeReference<QywxSendMsgResponse>(){}); |
| | | if(response.getErrcode()!=null && response.getErrcode() ==0){ |
| | | return response; |
| | | } |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | |
| | | return null; |
| | | } |
| | | public static List<QywxUserListResponse> getUserList(String token,String depatId) { |
| | |
| | | } |
| | | return null; |
| | | } |
| | | public static QywxBaseResponse<String> getUserInfoByCode(String token,String code) { |
| | | String[] interfaceUrl = QywxConstant.GET_USER_BY_AUTH_CODE; |
| | | String url = interfaceUrl[0].replace("${accesstoken}",token).replace("${code}",code); |
| | | QywxBaseResponse<String> response = sendHttpRequest(url,interfaceUrl[1],"" |
| | | ,new TypeReference<QywxBaseResponse<String>>(){}); |
| | | if(response.getErrcode()!=null && response.getErrcode() ==0){ |
| | | return response; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 发起wms接口请求 |