| | |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | | import com.doumee.core.haikang.model.param.respose.*; |
| | | import com.doumee.core.utils.Constants; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *1.9.1根据微信公众号信息获取AccessToken(分页) |
| | | * @return |
| | | */ |
| | | public static BaseResponse<String> wxAccessToken(String configId,String tagId){ |
| | | log.info("【海康根据微信公众号信息获取AccessToken】================开始====configId:"+configId+" && tagId:"+tagId); |
| | | try { |
| | | String res = HKTools.wxAccessToken(configId,tagId); |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse<String>>(){}; |
| | | BaseResponse<String> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康根据微信公众号信息获取AccessToken"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康根据微信公众号信息获取AccessToken】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *查询访客来访记录(已登记)(分页) |
| | | * @return |
| | | */ |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *获取工作台菜单免密登陆调整地址 |
| | | * @return |
| | | */ |
| | | public static String getMenuUrl(Integer type,String token){ |
| | | String menuId = HKConstants.MenuPageId.zhaf; |
| | | if(Constants.equalsInteger(type,Constants.ONE)){ |
| | | |
| | | }else if(Constants.equalsInteger(type,Constants.TWO)){ |
| | | |
| | | }else if(Constants.equalsInteger(type,Constants.THREE)){ |
| | | |
| | | } |
| | | log.info("【海康获取工作台菜单免密登陆调整地址】================开始====menuId:"+menuId+"==token:"+token); |
| | | try { |
| | | String res = HKTools.getMenuUrl(menuId,token); |
| | | return res; |
| | | }catch (Exception e){ |
| | | log.error("【海康获取工作台菜单免密登陆调整地址】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *增量组织查询(分页) |
| | | * @return |
| | | */ |