| | |
| | | |
| | | if (!StringUtil.isNullOrNone(dataFlow.getAppRoutes().get(0).getSecurityCode())) { |
| | | String sign = AuthenticationFactory.apiDataFlowMd5(dataFlow); |
| | | if (!sign.equals(dataFlow.getReqSign().toLowerCase())) { |
| | | if (StringUtil.isEmpty(dataFlow.getReqSign()) || !sign.equals(dataFlow.getReqSign().toLowerCase())) { |
| | | throw new NoAuthorityException(ResponseConstant.RESULT_CODE_NO_AUTHORITY_ERROR, "签名失败"); |
| | | } |
| | | } |
| | |
| | | HttpHeaders header = new HttpHeaders(); |
| | | //todo 对头信息重新包装 |
| | | for (String key : dataFlow.getRequestCurrentHeaders().keySet()) { |
| | | if("userName".equals(key) || "user-name".equals(key)){ |
| | | header.add(key, "-"); |
| | | continue; |
| | | } |
| | | header.add(key, reqHeader.get(key)); |
| | | } |
| | | //todo 用户信息再次包装 |