|  |  |  | 
|---|
|  |  |  | ZTBaseResponse<ZTUserGetTokenResponse> result = sendHttpRequest( | 
|---|
|  |  |  | ZTConstants.IntegerUrl.USER_UPDATE_URL, | 
|---|
|  |  |  | ZTConstants.IntegerName.USER_UPDATE_NAME, | 
|---|
|  |  |  | param.getToken(), | 
|---|
|  |  |  | param.getUserType(), | 
|---|
|  |  |  | JSONObject.toJSONString(param ), | 
|---|
|  |  |  | null, | 
|---|
|  |  |  | null, | 
|---|
|  |  |  | JSONObject.toJSONString(param), | 
|---|
|  |  |  | new TypeReference<ZTBaseResponse<ZTUserGetTokenResponse>>(){}); | 
|---|
|  |  |  | //        if(result!=null){ | 
|---|
|  |  |  | //            return result.getData(); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return  null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取获取省市区集合 | 
|---|
|  |  |  | * @param param | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public List<ZTAreaTreeResponse> getAreaTreeList(ZTAreaListRequest param){ | 
|---|
|  |  |  | if(StringUtils.isBlank(param.getPid())){ | 
|---|
|  |  |  | param.setPid(ZTConstants.DEFAULT_PID);//默认取全部省份 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ZTBaseResponse<List<ZTAreaTreeResponse>> result = sendHttpRequest( | 
|---|
|  |  |  | ZTConstants.IntegerUrl.AREA_TREE_URL, | 
|---|
|  |  |  | ZTConstants.IntegerName.AREA_TREE_NAME, | 
|---|
|  |  |  | param.getToken(), | 
|---|
|  |  |  | param.getUserType(), | 
|---|
|  |  |  | JSONObject.toJSONString(param ), | 
|---|
|  |  |  | new TypeReference<ZTBaseResponse<List<ZTAreaTreeResponse>>>(){}); | 
|---|
|  |  |  | if(result!=null){ | 
|---|
|  |  |  | return result.getData(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return  null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public   <T>   ZTBaseResponse<T> sendHttpRequest(String url,String name,String token,String userType,String param,TypeReference<ZTBaseResponse<T>> typeReference){ | 
|---|
|  |  |  | log.info("【"+name+"】================开始===="+ JSONObject.toJSONString(param)); | 
|---|