| | |
| | | public static BaseResponse<String> wxAccessToken(String configId,String tagId){ |
| | | log.info("【海康根据微信公众号信息获取AccessToken】================开始====configId:"+configId+" && tagId:"+tagId); |
| | | try { |
| | | String res = HKTools.wxAccessToken(configId,tagId); |
| | | HashMap<String,String> params = new HashMap<>(); |
| | | params.put("tagId",tagId); |
| | | params.put("configId",configId); |
| | | String res = HKTools.wxAccessToken(params); |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse<String>>(){}; |
| | | BaseResponse<String> result = JSONObject.parseObject(res, typeReference.getType()); |