| | |
| | | import com.java110.core.smo.ISaveTransactionLogSMO; |
| | | import com.java110.core.trace.Java110TraceLog; |
| | | import com.java110.dto.order.OrderDto; |
| | | import com.java110.entity.center.AppRoute; |
| | | import com.java110.entity.center.AppService; |
| | | import com.java110.entity.center.DataFlowLinksCost; |
| | | import com.java110.po.transactionLog.TransactionLogPo; |
| | | import com.java110.dto.system.AppRoute; |
| | | import com.java110.dto.system.AppService; |
| | | import com.java110.dto.system.DataFlowLinksCost; |
| | | import com.java110.po.log.TransactionLogPo; |
| | | import com.java110.utils.cache.AppRouteCache; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.constant.CommonConstant; |
| | |
| | | |
| | | 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 用户信息再次包装 |